diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | ttf-tangiers.install | 20 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..577a189a9006 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = ttf-tangiers + pkgdesc = A free alternative to the Algerian font + pkgver = 1.0 + pkgrel = 1 + url = http://www.fontsner.com/font/Tangiers_Normal-32393.html + install = ttf-tangiers.install + arch = any + license = freeware + depends = fontconfig + depends = xorg-font-utils + source = Tangiers_Normal.ttf::http://www.fontsner.com/download/32393 + md5sums = 27581eea27909741e2411bbf4e26c236 + +pkgname = ttf-tangiers + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9ba59816a5c9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: ShadowKyogre <shadowkyogre@aim.com> +pkgname=ttf-tangiers +pkgver=1.0 +pkgrel=1 +pkgdesc="A free alternative to the Algerian font" +arch=('any') +url="http://www.fontsner.com/font/Tangiers_Normal-32393.html" +license=('freeware') +depends=(fontconfig xorg-font-utils) +source=("Tangiers_Normal.ttf::http://www.fontsner.com/download/32393") +md5sums=('27581eea27909741e2411bbf4e26c236') +install=$pkgname.install + +build() { + cd $srcdir + mkdir -p $pkgdir/usr/share/fonts/TTF + chmod -x ./*.ttf + cp -Lr ./*.ttf $pkgdir/usr/share/fonts/TTF +} + +# vim:set ts=2 sw=2 et:
\ No newline at end of file diff --git a/ttf-tangiers.install b/ttf-tangiers.install new file mode 100644 index 000000000000..f4e3ec7c3995 --- /dev/null +++ b/ttf-tangiers.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 $*
\ No newline at end of file |