core/ca-certificates/PKGBUILD
2012-08-14 14:50:09 +00:00

46 lines
1.4 KiB
Bash

#
# Core packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=ca-certificates
pkgver=20120623
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=('ruby' 'python2')
install=ca-certificates.install
backup=('etc/ca-certificates.conf')
md5sums=('5105d4cc086f0d4ecf7bf2e4c4667289')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed 's|/usr/bin/python|/usr/bin/python2|g' -i mozilla/certdata2pem.py
sed 's|python|python2|g' -i mozilla/Makefile
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -d -m755 "${pkgdir}"/{etc/ca-certificates/update.d,usr/{sbin,share/ca-certificates},etc/ssl/certs}
make install DESTDIR="${pkgdir}"
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
}
# vim:set ts=2 sw=2 et: