summaryrefslogtreecommitdiffstats
path: root/abs/core/ttf-overlock
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/ttf-overlock')
-rw-r--r--abs/core/ttf-overlock/PKGBUILD23
-rw-r--r--abs/core/ttf-overlock/ttf.install16
2 files changed, 39 insertions, 0 deletions
diff --git a/abs/core/ttf-overlock/PKGBUILD b/abs/core/ttf-overlock/PKGBUILD
new file mode 100644
index 0000000..1a4190c
--- /dev/null
+++ b/abs/core/ttf-overlock/PKGBUILD
@@ -0,0 +1,23 @@
+pkgname=ttf-overlock
+pkgver=1.0
+pkgrel=1
+pkgdesc='Overlock typeface font'
+arch=('any')
+license=('custom:OFL')
+url='http://www.fontsquirrel.com/fonts/overlock'
+depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
+makedepends=('fontforge')
+install=ttf.install
+source=("http://www.fontsquirrel.com/fonts/download/overlock")
+
+package() {
+ cd "$srcdir"
+
+ install -d "$pkgdir/usr/share/fonts/TTF/"
+ install -m644 Overlock* "$pkgdir/usr/share/fonts/TTF/"
+
+ # install license
+ install -Dm644 "${srcdir}/SIL Open Font License.txt" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/SIL Open Font License.txt"
+}
+md5sums=('8e8e479b4521f32a7f173000d89aa06b')
diff --git a/abs/core/ttf-overlock/ttf.install b/abs/core/ttf-overlock/ttf.install
new file mode 100644
index 0000000..7d26d0c
--- /dev/null
+++ b/abs/core/ttf-overlock/ttf.install
@@ -0,0 +1,16 @@
+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
+}
+