summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/gsfonts/PKGBUILD41
-rw-r--r--abs/core/gsfonts/install15
-rw-r--r--abs/core/gsfonts/xfonts.install20
3 files changed, 37 insertions, 39 deletions
diff --git a/abs/core/gsfonts/PKGBUILD b/abs/core/gsfonts/PKGBUILD
index 325fffe..df44e7f 100644
--- a/abs/core/gsfonts/PKGBUILD
+++ b/abs/core/gsfonts/PKGBUILD
@@ -1,31 +1,34 @@
-# $Id: PKGBUILD 73458 2010-03-26 07:43:21Z francois $
-# Maintainer: Firmicus <francois.archlinux.org>
+# $Id: PKGBUILD 149058 2012-02-05 15:58:05Z bisson $
+# Contributor: Firmicus <francois.archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
+# Maintainer: Gaetan Bisson <bisson@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/"
+_fedorarel=11.fc17
+pkgrel=3
+pkgdesc='Standard Ghostscript Type1 fonts from URW'
+url='http://sourceforge.net/projects/gs-fonts/'
+arch=('any')
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')
+depends=('xorg-font-utils' 'fontconfig')
+source=("http://kojipkgs.fedoraproject.org/packages/${_realname}/${_fedoraver}/${_fedorarel}/src/${_realname}-${_fedoraver}-${_fedorarel}.src.rpm")
+sha1sums=('c4b31e581c25bc497c915d6d81e60cfdbb9f529e')
+
+provides=("${_realname}")
+install=install
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
+ cd "${srcdir}"
+ rpmextract.sh "${_realname}-${_fedoraver}-${_fedorarel}.src.rpm"
+ bsdtar xf *.tar.bz2
}
+package() {
+ cd "${srcdir}"
+ install -d "${pkgdir}"/usr/share/fonts/Type1
+ install -m644 *.{pfb,pfm,afm} "${pkgdir}"/usr/share/fonts/Type1
+}
diff --git a/abs/core/gsfonts/install b/abs/core/gsfonts/install
new file mode 100644
index 0000000..023e2ec
--- /dev/null
+++ b/abs/core/gsfonts/install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -sf > /dev/null
+ mkfontscale /usr/share/fonts/Type1
+ mkfontdir /usr/share/fonts/Type1
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
diff --git a/abs/core/gsfonts/xfonts.install b/abs/core/gsfonts/xfonts.install
deleted file mode 100644
index 3eb0455..0000000
--- a/abs/core/gsfonts/xfonts.install
+++ /dev/null
@@ -1,20 +0,0 @@
-post_install() {
- echo -n "Updating font cache... "
- fc-cache -f > /dev/null
- mkfontscale /usr/share/fonts/Type1
- mkfontdir /usr/share/fonts/Type1
- echo "done."
-}
-
-post_upgrade() {
- post_install $1
-}
-
-post_remove() {
- post_install $1
-}
-
-op=$1
-shift
-
-$op $*