# Contributor: Joe Banks <Eat314159AtJoes at aim dot com>
pkgname=ca-certificates
pkgver=20070303
pkgrel=1
pkgdesc="Common CA Certificates PEM files"
arch=('i686' 'x86_64')
url="http://www.cacert.org/"
license=('MPL-1.1')
depends=('openssl')
makedepends=('coreutils>=6.10')
provides=()
conflicts=()
replaces=()
backup=()
groups=()
options=()
install=${pkgname}.install
_DEBFILE=${pkgname}_${pkgver}_all.deb
source=("http://http.us.debian.org/debian/pool/main/c/${pkgname}/${pkgname}_${pkgver}_all.deb")
noextract=(${_DEBFILE})
md5sums=('bb33a371510956bc8bbe6366ba643148')
build() {
  cd ${startdir}/src
  msg "Unpacking deb archive"
  ar x ${_DEBFILE} || return 1
  tar xzf ./data.tar.gz || return 1
  rm -f control.tar.gz data.tar.gz debian-binary || return 1
  msg "Installing data"
  cp -pPR usr etc ${startdir}/pkg || return 1
  msg "Generating ca-certificates.conf"
  (
  cd ${startdir}/pkg/usr/share/ca-certificates
  find . -name '*.crt' | sort | cut -b3-
  ) > ${startdir}/pkg/etc/ca-certificates.conf || return 1
}
# vim:set ts=2 sw=2 et: