summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a6eecde13e23a415e8714613117a9437514f600 (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
# Maintainer: Ricardo Gonçalves <ricardompgoncalves@gmail.com>

pkgname=cartaodecidadao-bin
pkgver=3.0.15
pkgrel=1
pkgdesc="Portuguese Citizen Card Application"
arch=('x86_64')
url="http://www.cartaodecidadao.pt/"
license=('GPL2' 'LGPL3' 'custom:EUPL')
depends=('qt5-base'
         'qt5-tools'
         'qt5-quickcontrols2'
         'qt5-graphicaleffects'
         'pcsclite>=1.5.0'
         'openssl-1.0'
         'ccid'
         'poppler-qt5'
         'libxerces-c-3.1'
         'xml-security-c')
optdepends=('autenticacao-gov-pt: Necessário para autenticações online'
			'cartaodecidadao-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)')

source_x86_64=("https://www.autenticacao.gov.pt/documents/10179/11962/pteid-mw_amd64.deb")

md5sums_x86_64=('823b1dc97a30907b56c235b42a11f6fe')

prepare() {
	tar -xf data.tar.xz
}

package() {
	mkdir -p "${pkgdir}/usr/local/"
	mkdir -p "${pkgdir}/usr/share/"
	
	# Move files into place
	mv "${srcdir}"/usr/local/share "${pkgdir}/usr/local/"
	mv "${srcdir}"/usr/local/* "${pkgdir}/usr/"
	mv "${srcdir}"/usr/share/* "${pkgdir}/usr/share/"
	
	# Missing libcurl-nss.so.4
	# TODO: build lib
	#cp "/usr/lib/libcurl-openssl-1.0.so.4.5.0" "${pkgdir}/usr/lib/libcurl-nss.so.4"
	
	# Fix symlinks
	ln -s libxml-security-c.so "${pkgdir}/usr/lib/libxml-security-c.so.17"
	ln -s libcurl.so.3 "${pkgdir}/usr/lib/libcurl-nss.so.4"
	
	
	
#	# Move everything to install dir
#	mv "${srcdir}/usr" ${pkgdir}

#	# Fix desktop files
#	sed -i -e "s|/local||g" ${srcdir}/usr/share/applications/*
#	sed -i -e "s|bin/images/app.png|share/pixmaps/cartaodecidadao.png|g" ${srcdir}/usr/share/applications/*
#
#	# Move binaries out of local
#	cp -r ${srcdir}/usr/local/* ${srcdir}/usr/
#	rm -r ${srcdir}/usr/local
#
#	# Move images to pixmaps
#	mkdir -p ${pkgdir}/usr/share/pixmaps/
#	mv ${srcdir}/usr/bin/images/app.png ${pkgdir}/usr/share/pixmaps/cartaodecidadao.png
#
#	# remove uneeeded stuff
#	rm -rf ${srcdir}/etc
#	rm ${srcdir}/usr/bin/arranque.sh
#	rm -rf ${srcdir}/usr/{local,}/bin/images
#
#	# Fix some filenames
#	mv "${srcdir}/usr/share/applications/Aplicação da Área da Notificação.desktop" "${srcdir}/usr/share/applications/areadenotificacao.desktop"
#	mv "${srcdir}/usr/share/applications/Cartão de Cidadão.desktop"	"${srcdir}/usr/share/applications/cartaodecidadao.desktop"
#
#	# Add missing link to file
#	ln -sr ${srcdir}/usr/lib/libpteiddlg.so.1 ${srcdir}/usr/lib/libpteiddlg.so
#
#	# Move everything to install dir
#	cp -r ${srcdir}/usr* ${pkgdir}
}