From 2e566c0b0f3fba5a27924e57f351c3486e73b9c5 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 8 Sep 2016 14:29:52 -0300 Subject: ttf-comic-neue: add new package to [pcr] --- pcr/ttf-comic-neue/PKGBUILD | 20 ++++++++++++++++++++ pcr/ttf-comic-neue/ttf-comic-neue.install | 15 +++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 pcr/ttf-comic-neue/PKGBUILD create mode 100644 pcr/ttf-comic-neue/ttf-comic-neue.install (limited to 'pcr/ttf-comic-neue') diff --git a/pcr/ttf-comic-neue/PKGBUILD b/pcr/ttf-comic-neue/PKGBUILD new file mode 100644 index 000000000..fec7867ef --- /dev/null +++ b/pcr/ttf-comic-neue/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer (Arch): Thomas Haider + +pkgname=ttf-comic-neue +pkgver=2.2 +pkgrel=1 +pkgdesc="Comic Neue aspires to be the casual script choice for everyone including the typographically savvy." +arch=('any') +license=('custom:OFL') +url="http://comicneue.com" +depends=('fontconfig') +install=ttf-comic-neue.install +source=("http://comicneue.com/comic-neue-${pkgver}.zip" ttf-comic-neue.install) +sha256sums=('d67c7de093b3555a525a29db1999b7759723208f514f5fca117201d63b94b5b6' + '2459fa08887f819049afac36d7e7e23d7b9f58eb39c35ce02b17ce1096885c16') + +package() { + install -D -m644 comic-neue-${pkgver}/SIL-License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -d "${pkgdir}/usr/share/fonts/OTF" + install -m644 comic-neue-${pkgver}/OTF/*.otf "${pkgdir}/usr/share/fonts/OTF/" +} diff --git a/pcr/ttf-comic-neue/ttf-comic-neue.install b/pcr/ttf-comic-neue/ttf-comic-neue.install new file mode 100644 index 000000000..309a51b29 --- /dev/null +++ b/pcr/ttf-comic-neue/ttf-comic-neue.install @@ -0,0 +1,15 @@ +post_install() { + post_remove $1 +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + echo -n "==> Rebuilding font cache... " + fc-cache -s &> /dev/null + mkfontscale /usr/share/fonts/OTF + mkfontdir /usr/share/fonts/OTF + echo "done" +} -- cgit v1.2.3-54-g00ecf