2018-12-09 17:39:42 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://mj.ucw.cz/sw/pciutils/
|
|
|
|
TERMUX_PKG_DESCRIPTION="a collection of programs for inspecting and manipulating configuration of PCI devices"
|
2019-01-24 20:15:44 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2021-03-01 22:13:50 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-06-06 14:37:34 +02:00
|
|
|
TERMUX_PKG_VERSION=3.7.0
|
2021-03-01 22:13:50 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2019-12-05 06:36:11 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://mj.ucw.cz/download/linux/pci/pciutils-${TERMUX_PKG_VERSION}.tar.gz
|
2020-06-06 14:37:34 +02:00
|
|
|
TERMUX_PKG_SHA256=08c27e01030d1fcc700d02bc2ea66c638f58a3d150e45e58852aa82ad4160d84
|
2019-12-05 06:36:11 +01:00
|
|
|
TERMUX_PKG_DEPENDS="zlib"
|
2019-08-13 15:25:48 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2018-06-09 00:47:08 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
2018-12-09 17:39:42 +01:00
|
|
|
local ARCH=${TERMUX_ARCH}
|
|
|
|
if [[ ${ARCH} == "arm" ]]; then
|
2018-06-09 00:47:08 +02:00
|
|
|
ARCH="armv7l"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# ${str^^} returns upper case string
|
|
|
|
sed -i "s%\@TERMUX_ARCH\@%${ARCH^^}%g" ./lib/config.h
|
|
|
|
sed -i "s%\@TERMUX_ARCH\@%${ARCH^^}%g" ./lib/config.mk
|
|
|
|
}
|