aboutsummaryrefslogtreecommitdiffstats
path: root/community/ausweisapp2/APKBUILD
blob: 4851f467d9198fe7304b045f253181f768ad72ee (plain) (blame)
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
34
35
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=ausweisapp2
pkgver=1.22.0
pkgrel=0
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"
subpackages="$pkgname-doc"
source="https://github.com/Governikus/AusweisApp2/releases/download/$pkgver/AusweisApp2-$pkgver.tar.gz manpage.patch"
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 .
	cmake --build build
}

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

sha512sums="95af7c7125e4a09d9b640d8afdeb532daf8ef56afc3ed7bab772ebe638b5e5e4cca446dc107d370fa2c56a903256e44a96beb5e640f415ef08e347d96e66fbd4  AusweisApp2-1.22.0.tar.gz
ca80c8b945232937cf96e032f3f777a7c452cd72d6643c06ae706e83df04af5fdb9308b586ed490531c07389bd7955e8f1194a7aada6b5ce6b61ac739bc27aa8  manpage.patch"