void-packages/srcpkgs/lshw/template
icp 7ba4ad0b21
lshw: update to B.02.20.
Closes: #54204 [via git-merge-pr]
2025-02-17 22:37:51 -05:00

34 lines
958 B
Bash

# Template file for 'lshw'
pkgname=lshw
version=B.02.20
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 gettext"
makedepends="gtk+3-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=06d9cf122422220e5dc94e8ea5b01816a69bb6b59368f63d7f21fff31fc6922a
disable_parallel_build=yes # fails to link ./core/liblshw.a
post_patch() {
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
}
}