diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-03-28 23:25:00 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-03-28 23:25:00 -0300 |
commit | f77f6390ff2057bc8bbf9a543a257d03e07b24b7 (patch) | |
tree | 5ec4b988c4f3116fe234409211305bf203db562f /libre/ca-certificates/PKGBUILD | |
parent | 6551c1a67920b0897d6a9f083ccbf4b606435ebf (diff) |
ca-certificates: add previous version package on [libre] until solve server problem => https://lists.parabolagnulinux.org/pipermail/dev/2014-March/002129.html
Diffstat (limited to 'libre/ca-certificates/PKGBUILD')
-rw-r--r-- | libre/ca-certificates/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/libre/ca-certificates/PKGBUILD b/libre/ca-certificates/PKGBUILD new file mode 100644 index 000000000..94fc54223 --- /dev/null +++ b/libre/ca-certificates/PKGBUILD @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Pierre Schmitz <pierre@archlinux.de> + +pkgname=ca-certificates +pkgver=20130906 +pkgrel=1 +pkgdesc='Common CA certificates' +arch=('any') +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=('python2') +install='ca-certificates.install' +backup=('etc/ca-certificates.conf') +sha256sums=('dd10520091d469e95e11e5fafb7422d3be0a66071984d09009ed3e0232cb277d') + +prepare() { + cd ${srcdir}/${pkgname} + sed 's|/usr/bin/python|/usr/bin/python2|g' -i mozilla/certdata2pem.py + sed 's|python|python2|g' -i mozilla/Makefile +} + +build() { + cd ${srcdir}/${pkgname} + make +} + +package() { + cd ${srcdir}/${pkgname} + install -d -m755 ${pkgdir}/{etc/ca-certificates/update.d,usr/{sbin,share/ca-certificates},etc/ssl/certs} + make install DESTDIR=${pkgdir} + mv ${pkgdir}/usr/sbin ${pkgdir}/usr/bin + install -D -m644 sbin/update-ca-certificates.8 ${pkgdir}/usr/share/man/man8/update-ca-certificates.8 + + ( + echo "# Automatically generated by ${pkgname}-${pkgver}-${pkgrel}" + echo "# see update-ca-certificates man page" + echo "# " + cd ${pkgdir}/usr/share/ca-certificates + find . -name '*.crt' | sort | cut -b3- + ) > ${pkgdir}/etc/ca-certificates.conf +} |