aur/PKGBUILD
Bruno Miguel Fernandes Silva c9e9b98900
Bump to 3.6.0
2021-06-13 17:00:17 +01:00

53 lines
2 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.6.0
pkgrel=1
pkgdesc="Portuguese Citizen Card Application (Portugal eID) - version with pre compiled binaries"
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'
'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=('cartaodecidadao' 'cartaodecidadao-bin' 'autenticacao-gov-pt')
replaces=('cartaodecidadao-bin')
source_x86_64=("https://aplicacoes.autenticacao.gov.pt/apps/pteid-mw_ubuntu21_amd64.deb"
"autenticacao-gov-pt-bin.install")
sha512sums_x86_64=('08dc8865149ce0a62e90d75b7ecbdca01e120d52fa4c3f9bcc020d79d6118db7ca4d3f487d6dd1ab748a324a476bf34fe34ac90c9758f9779d61c650260b8a1a'
'd38b9748f386fcf64f3f0cb717eccf7936c64f0e7b6370ae3b1b079902015ce56d3057afcf2877ca4eee38776269ac3642701803ba96b24a81cfccc9a4d3245f')
install='autenticacao-gov-pt-bin.install'
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 the correct place
mv "${srcdir}"/usr/local/{share,bin} "${pkgdir}/usr/local/"
mv "${srcdir}"/usr/local/* "${pkgdir}/usr/"
mv "${srcdir}"/usr/share/* "${pkgdir}/usr/share/"
# Fix libzip.so.4 depedency: for now just point to the installed version of libzip
cd "${pkgdir}/usr/lib"
ln -s libzip.so libzip.so.4
}