diff options
Diffstat (limited to 'abs/core/ttf-bitstream-vera')
-rw-r--r-- | abs/core/ttf-bitstream-vera/PKGBUILD | 22 | ||||
-rw-r--r-- | abs/core/ttf-bitstream-vera/vera.install | 20 |
2 files changed, 42 insertions, 0 deletions
diff --git a/abs/core/ttf-bitstream-vera/PKGBUILD b/abs/core/ttf-bitstream-vera/PKGBUILD new file mode 100644 index 0000000..d802ca4 --- /dev/null +++ b/abs/core/ttf-bitstream-vera/PKGBUILD @@ -0,0 +1,22 @@ +# $Id +# Maintainer: dorphell <dorphell@archlinux.org> + +pkgname=ttf-bitstream-vera +pkgver=1.10 +pkgrel=5 +pkgdesc="Bitstream vera fonts" +arch=(i686 x86_64) +license=(custom) +url="http://www.gnome.org/fonts" +depends=(fontconfig xorg-fonts-encodings xorg-font-utils) +install=vera.install +source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/1.10/${pkgname}-${pkgver}.tar.bz2) +md5sums=(bb22bd5b4675f5dbe17c6963d8c00ed6) + +build() { + cd ${startdir}/src/${pkgname}-${pkgver} + mkdir -p ${startdir}/pkg/usr/share/fonts/TTF + install -m644 *.ttf ${startdir}/pkg/usr/share/fonts/TTF/ + mkdir -p ${startdir}/pkg/usr/share/licenses/custom/ttf-bitstream-vera + install -m644 COPYRIGHT.TXT ${startdir}/pkg/usr/share/licenses/custom/ttf-bitstream-vera/license.txt +} diff --git a/abs/core/ttf-bitstream-vera/vera.install b/abs/core/ttf-bitstream-vera/vera.install new file mode 100644 index 0000000..4f5212e --- /dev/null +++ b/abs/core/ttf-bitstream-vera/vera.install @@ -0,0 +1,20 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -f > /dev/null + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + +op=$1 +shift + +$op $* |