47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
# Template file for 'fingerprint-gui'
|
|
pkgname=fingerprint-gui
|
|
version=1.09
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}-qt5"
|
|
build_style=qmake
|
|
hostmakedepends="qt5-host-tools qt5-qmake"
|
|
makedepends="qt5-devel qca-qt5-devel libfprint-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"
|
|
|
|
hostmakedepends="qt5-x11extras-devel"
|
|
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
|
|
}
|