summaryrefslogtreecommitdiff
path: root/libre/ca-certificates-cacert/PKGBUILD
blob: 709875ccaa8cb5b2d92f57a25b102a703421bd2c (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
# $Id: PKGBUILD 220625 2014-08-24 14:47:59Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>

pkgname=ca-certificates-cacert
pkgver=20140824
pkgrel=0.1.parabola1 # build with 0.1 temporally because Arch official package is available on [testing] only
pkgdesc="CAcert.org root certificates"
arch=(any)
url="https://www.cacert.org/index.php?id=3"
license=('custom:RDL')
depends=(ca-certificates-utils)
install=ca-certificates-cacert.install
source=(CAcert.org_root.crt::http://www.cacert.org/certs/root.crt
        CAcert.org_class3.crt::http://www.cacert.org/certs/class3.crt
        LICENSE)
sha256sums=('c0e0773a79dceb622ef6410577c19c1e177fb2eb9c623a49340de3c9f1de2560'
            'f5badaa5da1cc05b110a9492455a2c2790d00c7175dcf3a7bcb5441af71bf84f'
            '2d9007a467e72d437ecfa13cc605c371e98a469f1aac4c890be74f953559833c')

build() {
  printf "cacert/%s\n" *.crt > cacert.conf
}

package() {
  local _certdir="$pkgdir/usr/share/ca-certificates/cacert"
  install -d "$_certdir"
  install -t "$_certdir" -m644 *.crt

  install -Dm644 cacert.conf "$pkgdir/etc/ca-certificates/conf.d/cacert.conf"

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