Skip to content

Commit

Permalink
add ttf-helvetica
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza Jelveh committed Jan 2, 2012
1 parent 6a6585e commit ed72ebb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ttf-helvetica/PKGBUILD
@@ -0,0 +1,15 @@
pkgname=ttf-helvetica
pkgver=1.0
pkgrel=1
depends=('fontconfig' 'xorg-font-utils')
pkgdesc="helvetica"
arch=('any')
source=(http://reza.jelveh.me/assets/$pkgname.tar.bz2)
install=$pkgname.install
md5sums=('d77746fb296806a87feca8a4c9909207')

build()
{
mkdir -p $pkgdir/usr/share/fonts/TTF
cp $srcdir/$pkgname/*.ttf $pkgdir/usr/share/fonts/TTF
}
11 changes: 11 additions & 0 deletions ttf-helvetica/ttf-helvetica.install
@@ -0,0 +1,11 @@
post_install() {
echo -n "Updating font cache... "
fc-cache -fs >/dev/null
mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1
mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1
echo "done"
}

post_upgrade() {
post_install
}

0 comments on commit ed72ebb

Please sign in to comment.