2018-06-09 00:47:08 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://mj.ucw.cz/sw/pciutils/
|
|
|
|
TERMUX_PKG_DESCRIPTION="The PCI Utilities are a collection of programs for inspecting and manipulating configuration of PCI devices"
|
2018-09-29 12:27:01 +02:00
|
|
|
TERMUX_PKG_VERSION=3.6.2
|
2018-06-09 00:47:08 +02:00
|
|
|
TERMUX_PKG_SRCURL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-$TERMUX_PKG_VERSION.tar.gz
|
2018-09-29 12:27:01 +02:00
|
|
|
TERMUX_PKG_SHA256=30005e341bb0ffa734174e592dc8f0dd928e1c9368b859715812149ed91d8f93
|
2018-06-09 00:47:08 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
|
|
|
local ARCH=$TERMUX_ARCH
|
|
|
|
if [ $ARCH == "arm" ]; then
|
|
|
|
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
|
|
|
|
}
|