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

26 lines
801 B
Bash
Raw Normal View History

2019-06-25 22:14:55 +02:00
TERMUX_PKG_HOMEPAGE=https://github.com/openSUSE/hwinfo
TERMUX_PKG_DESCRIPTION="Hardware detection tool from openSUSE"
TERMUX_PKG_LICENSE="GPL-2.0"
2020-05-02 10:32:24 +02:00
TERMUX_PKG_VERSION=21.70
2019-06-25 22:14:55 +02:00
TERMUX_PKG_SRCURL=https://github.com/openSUSE/hwinfo/archive/$TERMUX_PKG_VERSION.tar.gz
2020-05-02 10:32:24 +02:00
TERMUX_PKG_SHA256=bc3c4a4498e4abc32a54497ced715bbae5dfd19dd999da294bca6d69fea2db52
2019-06-25 22:14:55 +02:00
TERMUX_PKG_DEPENDS="libandroid-shmem, libuuid, libx86emu"
TERMUX_PKG_BREAKS="hwinfo-dev"
TERMUX_PKG_REPLACES="hwinfo-dev"
2019-06-25 22:14:55 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure() {
echo 'touch changelog' > git2log
LDFLAGS+=" -landroid-shmem"
}
termux_step_make() {
make -j1 HWINFO_VERSION="$TERMUX_PKG_VERSION" \
LIBDIR="$TERMUX_PREFIX/lib"
}
termux_step_make_install() {
make HWINFO_VERSION="$TERMUX_PKG_VERSION" \
DESTDIR="$TERMUX_PREFIX" install
2019-06-25 22:14:55 +02:00
}