void-packages/srcpkgs/lshw/template
Jürgen Buchmüller 7a3a434eb1 lshw: unbreak musl
2015-10-14 10:27:58 +02:00

35 lines
1,007 B
Bash

# Template build file for 'lshw'.
pkgname=lshw
version=B.02.17
revision=3
makedepends="gtk+-devel libglade-devel sqlite-devel"
hostmakedepends="pkg-config"
short_desc="Hardware lister application"
maintainer="Enno Boland <gottox@voidlinux.eu>"
homepage="http://ezix.org/project/wiki/HardwareLiSter"
license="GPL-2"
distfiles="http://ezix.org/software/files/lshw-${version}.tar.gz"
checksum=eb9cc053fa0f1e78685cb695596e73931bfb55d2377e3bc3b8b94aff4c5a489c
do_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl) cp -p ${FILESDIR}/confname.h ${wrksrc}/src/core
find . -type f -exec sed -i "{}" -e "s;__uint;uint;g" \;
;;
esac
sed -i 's,CXXFLAGS=,CXXFLAGS += ,g' src/Makefile
make CC=$CC CXX=$CXX PREFIX=/usr SBINDIR=/usr/bin ${makejobs}
}
do_install() {
make PREFIX=/usr SBINDIR=/usr/bin DESTDIR=${DESTDIR} install install-gui
}
gtk-lshw_package() {
depends+=" lshw"
short_desc+=" (GTK UI)"
pkg_install() {
vmove usr/share/lshw/artwork
vmove usr/share/lshw/ui
vmove usr/bin/gtk-lshw
}
}