void-packages/srcpkgs/fingerprint-gui/template
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

44 lines
1.5 KiB
Bash

# Template file for 'fingerprint-gui'
pkgname=fingerprint-gui
version=1.09
revision=3
wrksrc="${pkgname}-${version}-qt5"
build_style=qmake
hostmakedepends="qt5-host-tools qt5-qmake"
makedepends="qt5-devel qca-qt5-devel libfprint0-devel libfakekey-devel
polkit-qt5-devel pam-devel qt5-x11extras-devel"
depends="desktop-file-utils"
short_desc="Fingerprint management GUI and PAM module"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="http://www.ullrich-online.cc/fingerprint/"
distfiles="https://github.com/maksbotan/${pkgname}/archive/v${version}-qt5.tar.gz"
checksum=a28d43e7e505f8ed15c8360bd91603eaf3206c225a542d0116669caafd89154c
# build system deals poorly with cross headers so include
# them manually
if [ "$CROSS_BUILD" ]; then
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5"
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5/QtCore"
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5/QtGui"
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5/QtWidgets"
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5/QtXml"
fi
# This one is needed even when out of cross-compilation
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/Qca-qt5/QtCrypto"
LDFLAGS+=" -Wl,--no-as-needed -lqca-qt5"
conf_files="/etc/upek.cfg"
make_dirs="/var/lib/fingerprint-gui 0755 root root
/var/upek_data 0750 root input"
post_install() {
vdoc CHANGELOG
vconf upek/upek.cfg
case "$XBPS_TARGET_MACHINE" in
i686) vcopy "upek/lib/libbsapi.so.*" usr/lib;;
x86_64) vcopy "upek/lib64/libbsapi.so.*" usr/lib;;
esac
}