summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjesuschroist2017-04-02 15:51:44 +0900
committerjesuschroist2017-04-02 15:51:44 +0900
commit8e5f9856147ca223a74555c1a7143b821292a019 (patch)
treeea8bb4ed1cc334624a06b9e29e47c2919e8fd09c
downloadaur-8e5f9856147ca223a74555c1a7143b821292a019.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD20
-rw-r--r--ttf.install15
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..57b65520f4d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ttf-pirata-one
+ pkgdesc = A gothic textura font, simplified and optimized to work well on screen and pixel displays.
+ pkgver = 1.0
+ pkgrel = 1
+ url = http://www.rfuenzalida.com/
+ install = ttf.install
+ arch = any
+ license = custom:OFL
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = http://www.1001freefonts.com/d/5814/pirata_one.zip
+ md5sums = 150aae277366407f44abd3340fea58f6
+
+pkgname = ttf-pirata-one
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5557bdedc87
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: jesuschroist <chris@qlab.pro>
+
+pkgname=ttf-pirata-one
+pkgver=1.0
+pkgrel=1
+pkgdesc="A gothic textura font, simplified and optimized to work well on screen and pixel displays."
+arch=('any')
+url="http://www.rfuenzalida.com/"
+license=('custom:OFL')
+depends=('fontconfig' 'xorg-font-utils')
+install=ttf.install
+source=(http://www.1001freefonts.com/d/5814/pirata_one.zip)
+md5sums=('150aae277366407f44abd3340fea58f6')
+
+package() {
+ cd "$srcdir"
+ install -dm755 "$pkgdir/usr/share/fonts/TTF"
+ install -Dm644 PirataOne-Regular.ttf "$pkgdir/usr/share/fonts/TTF"
+ install -Dm644 OFL.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+}
diff --git a/ttf.install b/ttf.install
new file mode 100644
index 00000000000..33b7d65490d
--- /dev/null
+++ b/ttf.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "==> Rebuilding 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
+}