aur/PKGBUILD
2020-04-09 15:41:59 +01:00

50 lines
1.7 KiB
Bash

# Maintainer: Bruno Silva <brunofernandes at ua dot pt>
# Co-Maintainer: Ricardo Gonçalves <ricardompgoncalves@gmail.com>
pkgname=autenticacao-gov-pt-bin
pkgver=3.1.0
pkgrel=1
pkgdesc="Portuguese Citizen Card Application - pre compiled binaries version"
arch=('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-1.0'
'ccid'
'libzip'
'poppler-qt5'
'libxerces-c-3.1'
'libcurl-compat'
'xml-security-c')
optdepends=('plugin-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')
conflicts=('cartaodecidadao' 'cartaodecidadao-bin' 'autenticacao-gov-pt')
replaces=('cartaodecidadao-bin')
source_x86_64=("https://www.autenticacao.gov.pt/documents/10179/11962/Autenticacao.gov_Ubuntu_19_x64.deb")
sha512sums_x86_64=('9a0ad74594e1340af3667c279ed7acfdcd6bd33736d3c0f2d687dd5f1d6b09520031f2ad9ef493ab8239bc20b15211a4d5ade800c1dbf647d4a782a9eb3fdd4e')
prepare() {
tar -xf data.tar.xz
}
package() {
mkdir -p "${pkgdir}/usr/local/"
mkdir -p "${pkgdir}/usr/share/"
mkdir -p "${pkgdir}/usr/lib"
# Move files into place
mv "${srcdir}"/usr/local/{share,bin} "${pkgdir}/usr/local/"
mv "${srcdir}"/usr/local/* "${pkgdir}/usr/"
mv "${srcdir}"/usr/share/* "${pkgdir}/usr/share/"
# Fix symlinks
ln -s libcurl.so.3 "${pkgdir}/usr/lib/libcurl-nss.so.4"
}