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"
|
2021-03-01 22:13:50 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-06-11 21:52:28 +02:00
|
|
|
TERMUX_PKG_VERSION=21.74
|
2019-06-25 22:14:55 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/openSUSE/hwinfo/archive/$TERMUX_PKG_VERSION.tar.gz
|
2021-06-11 21:52:28 +02:00
|
|
|
TERMUX_PKG_SHA256=e826865af657c4966c37c8e915499dc148ff6df4879d3d86f71885defee8335c
|
2019-06-25 22:14:55 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-shmem, libuuid, libx86emu"
|
2019-07-29 09:11:02 +02:00
|
|
|
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" \
|
2019-06-29 01:19:08 +02:00
|
|
|
DESTDIR="$TERMUX_PREFIX" install
|
2019-06-25 22:14:55 +02:00
|
|
|
}
|