void-packages/srcpkgs/lshw/template
2016-05-07 05:56:41 +02:00

35 lines
1,017 B
Bash

# Template build file for 'lshw'.
pkgname=lshw
version=B.02.18
revision=4
makedepends="gtk+-devel libglade-devel sqlite-devel"
hostmakedepends="docbook2x 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=ae22ef11c934364be4fd2a0a1a7aadf4495a0251ec6979da280d342a89ca3c2f
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
}
}