termux-packages/root-packages/pciutils/build.sh

20 lines
711 B
Bash
Raw Normal View History

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"
2020-02-14 22:12:19 +01:00
TERMUX_PKG_VERSION=3.6.4
TERMUX_PKG_SRCURL=https://mj.ucw.cz/download/linux/pci/pciutils-${TERMUX_PKG_VERSION}.tar.gz
2020-02-14 22:12:19 +01:00
TERMUX_PKG_SHA256=1e87de2308683006ad0174f29c60df5c1f76045a8947c558a9376cc65034c64e
TERMUX_PKG_DEPENDS="zlib"
TERMUX_PKG_BUILD_IN_SRC=true
2018-06-09 00:47:08 +02:00
termux_step_pre_configure () {
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
}