void-packages/srcpkgs/hwinfo/template

55 lines
1.2 KiB
Bash
Raw Normal View History

2021-10-17 08:52:31 +00:00
# Template file for 'hwinfo'
pkgname=hwinfo
version=21.80
revision=1
build_style=gnu-makefile
make_use_env=yes
make_build_args="HWINFO_VERSION=${version} LIBDIR=/usr/lib${XBPS_TARGET_WORDSIZE}"
make_install_args="${make_build_args}"
hostmakedepends="perl flex"
makedepends="libx86emu-devel libuuid-devel"
short_desc="Hardware information tool"
maintainer="meator <meator.dev@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/openSUSE/hwinfo"
distfiles="https://github.com/openSUSE/hwinfo/archive/refs/tags/${version}.tar.gz"
checksum=ea944271793df091af560ac6e82dcd1271aa83f22aeeada031789df1b5407ebe
disable_parallel_build=yes
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" hwinfo"
fi
post_patch() {
if [ "$CROSS_BUILD" ]; then
for p in ${FILESDIR}/*; do
patch -p1 < $p
done
fi
}
pre_build() {
if [ "$CROSS_BUILD" ]; then
CC=gcc CFLAGS= LDFLAGS= make ${make_build_args} -C src/isdn/cdb isdn_cdb.h
make -C src/isdn/cdb clean
fi
}
post_install() {
mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
for m in doc/*.[1-9]; do
vman ${m}
done
}
hwinfo-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}