summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-09-26 15:18:29 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-09-26 15:18:29 (GMT)
commitf98cf065b38a39d4a0262a74a5715d24ae880c3a (patch)
treed243b9784a581e3ec587dca9856e211ff315e169
parent33a2be7377667c3bd4f80472d3422ad1151b7ce6 (diff)
downloadlinhes_pkgbuild-f98cf065b38a39d4a0262a74a5715d24ae880c3a.zip
linhes_pkgbuild-f98cf065b38a39d4a0262a74a5715d24ae880c3a.tar.gz
linhes_pkgbuild-f98cf065b38a39d4a0262a74a5715d24ae880c3a.tar.bz2
ttf-overlock: initial inclusion; used as default OSD font
-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
+}
+