aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ausweisapp2/APKBUILD
blob: 60923c593e58bbe00e5e6e0e3f02ee72c5de3a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=ausweisapp2
pkgver=1.20.0
pkgrel=1
pkgdesc="Official authentication app for German ID card and residence permit"
url="https://www.ausweisapp.bund.de/"
arch="all !armhf" # missing qt5-qtquickcontrols2
license="EUPL-1.2"
depends="pcsc-lite pcsc-cyberjack ccid acsccid"
makedepends="cmake pkgconf pcsc-lite-dev http-parser-dev openssl-dev
			qt5-qtbase-dev qt5-qtsvg-dev qt5-qtwebsockets-dev qt5-qttools-dev
			qt5-qtdeclarative-dev qt5-qtquickcontrols2-dev"
source="https://github.com/Governikus/AusweisApp2/releases/download/$pkgver/AusweisApp2-$pkgver.tar.gz"
options="!check" # no upstream tests in release build
builddir="$srcdir/AusweisApp2-$pkgver"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		$CMAKE_CROSSOPTS .
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="9fe83d59a02e8ae89dae9264a94b3d1bd943b6d4843dd8a833e9bb65a0d98c6d78f7c7b69f5cae74f013b84bf580228e1a9805f8deb8fcfc33f002f73e61d4ee  AusweisApp2-1.20.0.tar.gz"