summaryrefslogtreecommitdiffstats
path: root/abs/core/ca-certificates/PKGBUILD
blob: 35b08cab566e2b099270de22286526a6565994a2 (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 15695 2008-10-17 11:18:31Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=ca-certificates
pkgver=20080809
pkgrel=30
pkgdesc='Common CA certificates'
arch=('i686' 'x86_64')
url='http://packages.qa.debian.org/c/ca-certificates.html'
license=('MPL' 'GPL')
source=("http://ftp.debian.org/debian/pool/main/c/${pkgname}/${pkgname}_${pkgver}.tar.gz")
depends=('bash' 'run-parts' 'openssl' 'findutils' 'coreutils' 'sed')
makedepends=('ruby')
install=ca-certificates.install
backup=('etc/ca-certificates.conf')
md5sums=('c155f5059006b94ad0aea7018161ab37')

build() {
	cd $srcdir/$pkgname

	install -d -m755 $pkgdir/{etc/ca-certificates/update.d,usr/{sbin,share/ca-certificates}}
	install -D -m644 sbin/update-ca-certificates.8 $pkgdir/usr/share/man/man8/update-ca-certificates.8
	make
	make install DESTDIR=$pkgdir

	(
	echo "# Automatically generated by ${pkgname}-${pkgver}-${pkgrel}"
	echo "# "
	cd $pkgdir/usr/share/ca-certificates
	find . -name '*.crt' | sort | cut -b3-
	) > $pkgdir/etc/ca-certificates.conf
}