30 lines
834 B
Bash
30 lines
834 B
Bash
# Template build file for 'lshw'.
|
|
pkgname=lshw
|
|
version=B.02.17
|
|
revision=2
|
|
makedepends="gtk+-devel libglade-devel sqlite-devel"
|
|
hostmakedepends="pkg-config"
|
|
short_desc="Hardware lister application"
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
homepage="http://ezix.org/project/wiki/HardwareLiSter"
|
|
license="GPL-2"
|
|
distfiles="http://ezix.org/software/files/lshw-${version}.tar.gz"
|
|
checksum=eb9cc053fa0f1e78685cb695596e73931bfb55d2377e3bc3b8b94aff4c5a489c
|
|
|
|
do_build() {
|
|
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
|
|
}
|
|
}
|