void-packages/srcpkgs/lshw/template

36 lines
1 KiB
Bash

# Template build file for 'lshw'.
pkgname=lshw
version=B.02.18
revision=7
makedepends="gtk+-devel libglade-devel sqlite-devel"
hostmakedepends="docbook2x pkg-config"
short_desc="Hardware lister application"
maintainer="Enno Boland <gottox@voidlinux.org>"
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; s,LDFLAGS=,LDFLAGS += ,g' \
src/Makefile src/gui/Makefile
make CC=$CC CXX=$CXX PREFIX=/usr SBINDIR=/usr/bin all gui
}
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
}
}