void-packages/srcpkgs/lshw/template
Đoàn Trần Công Danh a92d370caa srcpkgs: add patch_args=-Np0 en-mass
Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
2021-06-20 13:17:29 +07:00

34 lines
906 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
patch_args=-Np0
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
}
}