summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Fontenelle2019-10-12 07:53:34 -0300
committerRafael Fontenelle2019-10-12 08:08:46 -0300
commite1cae8989e06f3398871157a6300b2952acb6eda (patch)
treee57e322e08ad33594502af9d319a67d289853800
parentf86d346896f164e5850f2bf5710e22be47a05fd7 (diff)
downloadaur-e1cae8989e06f3398871157a6300b2952acb6eda.tar.gz
Update to 20191010
Previous upstream releases provided a zip file with a directory named "ACcompactado" containing all certificates. This release does not provide such directory, and extracting it would put all certificates to source directory. Added "noextract" option to avoid that behavior.
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD12
2 files changed, 12 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6a792ea609f..fe0bd4adb97 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = ca-certificates-icp_br
pkgdesc = Brazilian government Certification Authorities
- pkgver = 20190823
+ pkgver = 20191010
pkgrel = 1
url = https://www.iti.gov.br/repositorio/repositorio-ac-raiz
arch = any
license = unknown
makedepends = unzip
depends = ca-certificates-utils
- source = icpbr_certs-20190823-1.zip::http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip
- sha512sums = 540a9b6d77def3c04d00eeff44007df63abc20fc62cfb0c542adc0ce28ebdc2de4eb16a99f82c7b1404406a738044f987b80c4d4faab68bcad17a59f823af5d4
+ noextract = icpbr_certs-20191010-1.zip
+ source = icpbr_certs-20191010-1.zip::http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip
+ sha512sums = a48401fefc961218f3a16b803cfc2ea97df50d39358dcd06e7b94c31a08248a25ced82421604e3e5fe9d683b7db4c975199d4f0fd061b0f924eb62f7a1081983
pkgname = ca-certificates-icp_br
diff --git a/PKGBUILD b/PKGBUILD
index 6306776ed89..b19817bdb96 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Tiago Brait <tiagobrait AT gmail DOT com>
pkgname=ca-certificates-icp_br
-pkgver=20190823
+pkgver=20191010
pkgrel=1
pkgdesc="Brazilian government Certification Authorities"
arch=('any')
@@ -11,14 +11,18 @@ license=('unknown')
depends=('ca-certificates-utils')
makedepends=('unzip')
source=("icpbr_certs-${pkgver}-${pkgrel}.zip::http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip")
-sha512sums=('540a9b6d77def3c04d00eeff44007df63abc20fc62cfb0c542adc0ce28ebdc2de4eb16a99f82c7b1404406a738044f987b80c4d4faab68bcad17a59f823af5d4')
+sha512sums=('a48401fefc961218f3a16b803cfc2ea97df50d39358dcd06e7b94c31a08248a25ced82421604e3e5fe9d683b7db4c975199d4f0fd061b0f924eb62f7a1081983')
+noextract=("icpbr_certs-${pkgver}-${pkgrel}.zip")
+
+_source="icpbr_certs-${pkgver}-${pkgrel}"
prepare() {
- mv ACcompactado icpbr_certs-${pkgver}-${pkgrel}
+ rm -rf "$_source" && mkdir "$_source"
+ unzip -q "$_source.zip" -d "$_source"
}
package() {
- cd icpbr_certs-${pkgver}-${pkgrel}
+ cd "$_source"
find * -print0 | while read -d $'\0' cert; do
# Edit filenames removing whitespaces and prepending 'icp_br'