248503d632
This reverts commit f7948d6051
.
??????
38 lines
995 B
Bash
38 lines
995 B
Bash
# Template file for 'lshw'
|
|
pkgname=lshw
|
|
version=B.02.19.2
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="VERSION=${version}"
|
|
make_build_target="all gui"
|
|
make_install_args="SBINDIR=/usr/bin"
|
|
make_install_target="install install-gui"
|
|
make_use_env=yes
|
|
hostmakedepends="docbook2x pkg-config"
|
|
makedepends="gtk+-devel"
|
|
short_desc="Hardware lister application"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://ezix.org/project/wiki/HardwareLiSter"
|
|
distfiles="https://ezix.org/software/files/lshw-${version}.tar.gz"
|
|
checksum=9bb347ac87142339a366a1759ac845e3dbb337ec000aa1b99b50ac6758a80f80
|
|
|
|
post_patch() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
cp -p ${FILESDIR}/confname.h ${wrksrc}/src/core
|
|
;;
|
|
esac
|
|
vsed -i src/Makefile src/gui/Makefile \
|
|
-e 's,CXXFLAGS=,CXXFLAGS += ,g'
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|