# $Id: PKGBUILD 73458 2010-03-26 07:43:21Z francois $
# Maintainer: Firmicus <francois.archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>

pkgname=gsfonts
_realname=urw-fonts
pkgver=1.0.7pre44
_fedoraver=2.4
_fedorarel=9.fc13
pkgrel=2
pkgdesc="Ghostscript standard Type1 fonts from URW"
arch=(any)
url="http://sourceforge.net/projects/gs-fonts/"
license=('GPL2')
depends=('xorg-font-utils' 'fontconfig')
makedepends=('rpmextract')
provides=(${_realname})
install=xfonts.install
source=(http://kojipkgs.fedoraproject.org/packages/${_realname}/${_fedoraver}/${_fedorarel}/src/${_realname}-${_fedoraver}-${_fedorarel}.src.rpm)
options=(force)
md5sums=('54935e7d6692792e414510490e3a0fa4')

build() {
  cd $srcdir || return 1
  /usr/bin/rpmextract.sh ${_realname}-${_fedoraver}-${_fedorarel}.src.rpm || return 1
  bsdtar xf *.tar.bz2 || return 1
  install -d ${pkgdir}/usr/share/fonts/Type1
  install -m644 *.{pfb,pfm,afm} \
                ${pkgdir}/usr/share/fonts/Type1/ || return 1
}