summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD23
-rw-r--r--ttf.install15
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..69f6313fe5b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ttf-xirwena
+ pkgdesc = A decorative medieval style ttf font by Pia Frauss
+ pkgver = 1
+ pkgrel = 1
+ url = http://www.pia-frauss.de/
+ install = ttf.install
+ arch = any
+ license = Free for personal use
+ depends = fontconfig
+ depends = xorg-fonts-encodings
+ depends = xorg-font-utils
+ source = http://img.dafont.com/dl/?f=xirwena
+ md5sums = 4ad89b6cd7593a050a411a94a9f99cda
+
+pkgname = ttf-xirwena
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..09f2324c407
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Archadept
+# Revision: 2012-01-31
+
+pkgname=ttf-xirwena
+_pkgname=xirwena
+pkgver=1
+pkgrel=1
+pkgdesc="A decorative medieval style ttf font by Pia Frauss"
+arch=('any')
+url="http://www.pia-frauss.de/"
+license=('Free for personal use')
+depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
+install=ttf.install
+source=("http://img.dafont.com/dl/?f=xirwena")
+md5sums=('4ad89b6cd7593a050a411a94a9f99cda')
+
+package() {
+ unzip "?f=xirwena"
+ mkdir "$srcdir/$_pkgname"
+ mv $srcdir/${_pkgname}1.ttf $srcdir/$_pkgname
+ cd "$srcdir/$_pkgname"
+ install -Dm644 "${_pkgname}1.ttf" "$pkgdir/usr/share/fonts/TTF/${_pkgname}1.ttf"
+}
diff --git a/ttf.install b/ttf.install
new file mode 100644
index 00000000000..01ebbddd157
--- /dev/null
+++ b/ttf.install
@@ -0,0 +1,15 @@
+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
+}