lshw: move to usr/bin; build with our {C,LD}FLAGS.
This commit is contained in:
parent
916ef51223
commit
a520348f56
1 changed files with 11 additions and 5 deletions
|
@ -1,8 +1,7 @@
|
|||
# Template build file for 'lshw'.
|
||||
pkgname=lshw
|
||||
version=B.02.17
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
revision=2
|
||||
makedepends="gtk+-devel libglade-devel sqlite-devel"
|
||||
hostmakedepends="pkg-config"
|
||||
short_desc="Hardware lister application"
|
||||
|
@ -11,14 +10,21 @@ homepage="http://ezix.org/project/wiki/HardwareLiSter"
|
|||
license="GPL-2"
|
||||
distfiles="http://ezix.org/software/files/lshw-${version}.tar.gz"
|
||||
checksum=eb9cc053fa0f1e78685cb695596e73931bfb55d2377e3bc3b8b94aff4c5a489c
|
||||
make_install_target="install install-gui"
|
||||
|
||||
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)"
|
||||
short_desc+=" (GTK UI)"
|
||||
pkg_install() {
|
||||
vmove usr/share/lshw/artwork
|
||||
vmove usr/share/lshw/ui
|
||||
vmove usr/sbin/gtk-lshw
|
||||
vmove usr/bin/gtk-lshw
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue