summaryrefslogtreecommitdiff
path: root/libre/ca-certificates-cacert/PKGBUILD
blob: 57c8c3ae68231448a572e7c513a33d90ca8c9bb9 (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
# $Id: PKGBUILD 220625 2014-08-24 14:47:59Z heftig $
# Maintainer (Arch): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: André Silva <emulatorman@parabola.nu>

pkgname=ca-certificates-cacert
pkgver=20140824
pkgrel=0.1.parabola3 # build with 0.x only and keep this package on [libre] temporally until which Arch official package be moved from [testing] to some stable repo
pkgdesc="CAcert.org root certificates"
arch=(any)
url="https://www.cacert.org/index.php?id=3"
license=('custom:RDL')
depends=(ca-certificates=20140325-1)
install=ca-certificates-cacert.install
source=(http://www.cacert.org/certs/root.crt
        http://www.cacert.org/certs/class3.crt
        LICENSE)
sha256sums=('c0e0773a79dceb622ef6410577c19c1e177fb2eb9c623a49340de3c9f1de2560'
            'f5badaa5da1cc05b110a9492455a2c2790d00c7175dcf3a7bcb5441af71bf84f'
            '2d9007a467e72d437ecfa13cc605c371e98a469f1aac4c890be74f953559833c')

package() {
    [[ "$(openssl x509 -noout -fingerprint -in root.crt)" == "SHA1 Fingerprint=13:5C:EC:36:F4:9C:B8:E9:3B:1A:B2:70:CD:80:88:46:76:CE:8F:33" ]] && install -Dm644 root.crt "${pkgdir}/usr/share/ca-certificates/cacert.org/cacert.org_root.crt"
    [[ "$(openssl verify -CAfile root.crt -verbose class3.crt)" == "class3.crt: OK" ]] && install -Dm644 class3.crt "${pkgdir}/usr/share/ca-certificates/cacert.org/cacert.org_class3.crt"

    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}