blob: 2558816ecc639cee056f07263507f9b5253fd94b (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Maintainer: Bruno Silva <brunofernandes at ua dot pt>
# Co-Maintainer: Carlos Silva <r3pek@r3pek.org>
pkgname=autenticacao-gov-pt
_pkgname=autenticacao.gov
pkgver=3.13.0
pkgrel=4
pkgdesc="Portuguese Citizen Card Application (Portugal eID) source code based version"
arch=('i686' 'x86_64')
url="http://www.cartaodecidadao.pt/"
license=('GPL2' 'LGPL3' 'custom:EUPL')
depends=('qt5-base'
'qt5-tools'
'qt5-quickcontrols'
'qt5-quickcontrols2'
'qt5-graphicaleffects'
'pcsclite>=1.5.0'
'openssl'
'ccid'
'libzip'
'poppler-qt5'
'libcurl-compat'
'xml-security-c'
'libcurl-gnutls'
'openjpeg2'
'openpace-git'
'cjson')
makedepends=('swig' 'qconf' 'git')
optdepends=('plugin-autenticacao-gov-pt: Necessário para autenticações online'
'autenticacao-gov-pt-pki: PKI que confirma a validade dos certificados dos CC'
'ecce-gov-pt-certificates: Certificados da ECCE quem assina dos certificados contidos em cartaodecidadao-pki')
conflicts=('classpath' 'cartaodecidadao' 'cartaodecidadao-bin')
replaces=('cartaodecidadao')
source=("git+https://github.com/amagovpt/autenticacao.gov/#tag=v${pkgver}"
"autenticacao-gov-pt.install")
sha512sums=('SKIP'
'344a0722a4554150f17f25d49d85c8a42d5e75b2444d59b1648f7c3d0817eb93eb011680f3cccf092a5eceef7c13e8048f0d09de4f07199a33c7bd1033c3de9f')
install='autenticacao-gov-pt.install'
prepare(){
cat >> ${srcdir}/${_pkgname}/pteid-mw-pt/_src/eidmw/eidlibJava_Wrapper/eidlibJava_Wrapper.pro <<EOF
INCLUDEPATH += /usr/lib/jvm/default/include
INCLUDEPATH += /usr/lib/jvm/default/include/linux
EOF
}
build() {
cd ${srcdir}/${_pkgname}/pteid-mw-pt/_src/eidmw
qmake pteid-mw.pro
make -j${nproc}
}
package() {
cd ${srcdir}/${_pkgname}/pteid-mw-pt/_src/eidmw
# Fix upstream bug not creating path
mkdir -p ${pkgdir}/usr/local/lib/
mkdir -p ${pkgdir}/usr/share/fonts/pteid/lato/
# Install programs and libraries
make INSTALL_ROOT="$pkgdir" DESTDIR=$pkgdir PREFIX=/usr install
# Fix library path from debian to Arch Linux
mv ${pkgdir}/usr/local/lib/ ${pkgdir}/usr/lib/
# Install desktop files
install -Dm644 ${srcdir}/${_pkgname}/pteid-mw-pt/_src/eidmw/debian/pteid-mw-gui.desktop ${pkgdir}/usr/share/applications/pteid-mw-gui.desktop
# Install fonts
install -Dm644 ${srcdir}/${_pkgname}/pteid-mw-pt/_src/eidmw/eidguiV2/fonts/lato/Lato-Black.ttf ${pkgdir}/usr/share/fonts/pteid/lato/
install -Dm644 ${srcdir}/${_pkgname}/pteid-mw-pt/_src/eidmw/eidguiV2/fonts/lato/Lato-Bold.ttf ${pkgdir}/usr/share/fonts/pteid/lato/
install -Dm644 ${srcdir}/${_pkgname}/pteid-mw-pt/_src/eidmw/eidguiV2/fonts/lato/Lato-Regular.ttf ${pkgdir}/usr/share/fonts/pteid/lato/
# Cleanup
rm -rf ${pkgdir}/usr/local/share/pteid-mw/fonts/Lato-Regular.ttf
# Install image files
install -Dm644 ${srcdir}/${_pkgname}/pteid-mw-pt/_src/eidmw/debian/pteid-signature.png ${pkgdir}/usr/share/autenticacao-gov/pteid-signature.png
install -Dm644 ${srcdir}/${_pkgname}/pteid-mw-pt/_src/eidmw/debian/pteid-scalable.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/pteid-scalable.svg
}
|