summaryrefslogtreecommitdiff
path: root/local-certificates/PKGBUILD
blob: eb988f5a6aa4b664b1f6235aa7f24abaff5fea4e (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
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname='local-certificates'
arch=('any')
pkgver=2019.07.27.08.34.32
pkgrel=1
pkgdesc='Certificate for local version of https://arch.eckner.net'
license=('GPL')
install='local-certificates.install'
url='https://eckner.net/certs'

source=(
  'https://eckner.net/certs/2019-07-04T07:45:48.arch.eckner.net.cert.pem'
  'https://eckner.net/certs/2019-07-04T09:49:15.arch.eckner.net.cert.pem.new'
  'https://eckner.net/certs/2019-07-27T08:34:32.backup-lo.ddns.eckner.net.cert.pem.new'
  'https://eckner.net/certs/2019-07-27T08:33:41.backup-lo.ddns.eckner.net.cert.pem'
)
sha512sums=(
  'f47a38879c346c487a9d53640e681e2600362d9e37d8463282e5f2ed3d02c0fbe60e5e48582335d18b0fb6e76b42544b7e8aa3cf40d796c9ae733ad44dd5bc42'
  'd8de0d8d71f132d4a9c9afd0e226092e7381f42b5e915c192d64017bbf8c2124143e05760de1c56a09ed35ca59da2985fa0cb92c7f500d79dd6fe7c1f1256a11'
  'c99bcf732b5110c1137d2d1bf938e50f332b49b63c36f957dd2a6b51e224a7dfba6a5c096d0e9a67149318094405deb773677cfa2bccfa806d72c6c17e8aaa63'
  'e69b4fb3caa45c4d214d4083bc235ad31f4125a6bf6ded4041160c371d20889c5067550f4acdd066a1dc68b2fc859084e9197bdedcae1aa29c74aedbe933ac5a'
)

package() {
  cd "${srcdir}"
  install -d "${pkgdir}/usr/share/ca-certificates/trust-source/anchors"
  for s in *.cert.pem{,.new}; do
    install \
      "${s}" \
      "${pkgdir}/usr/share/ca-certificates/trust-source/anchors/${s#????-??-??T??:??:??.}"
  done
}