a3ad5f698a
musl-path_max was no longer necessary, and musl-confname_h was kind of helping them do the wrong thing. They should just be using the value of LONG_BIT instead of trying to pass it to sysconf, so the usage was wrong on glibc and musl. _SC_LONG_BIT is a glibc extension and shouldn't be at all needed. Since this does change behavior (sysconf(LONG_BIT) could return arbitrary values), revbump the package.
33 lines
890 B
Bash
33 lines
890 B
Bash
# Template file for 'lshw'
|
|
pkgname=lshw
|
|
version=B.02.19.2
|
|
revision=2
|
|
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() {
|
|
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
|
|
}
|
|
}
|