From f98cf065b38a39d4a0262a74a5715d24ae880c3a Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 26 Sep 2013 10:18:29 -0500 Subject: ttf-overlock: initial inclusion; used as default OSD font --- abs/core/ttf-overlock/PKGBUILD | 23 +++++++++++++++++++++++ abs/core/ttf-overlock/ttf.install | 16 ++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 abs/core/ttf-overlock/PKGBUILD create mode 100644 abs/core/ttf-overlock/ttf.install 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 +} + -- cgit v0.12