diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-09-08 14:29:52 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-09-08 14:32:03 -0300 |
commit | 2e566c0b0f3fba5a27924e57f351c3486e73b9c5 (patch) | |
tree | 659f5005449e95c4a5160773ad51c4572821b698 | |
parent | 1340c6e3954723bc24b3d31b6e37fd83ed9b2ad0 (diff) | |
download | abslibre-2e566c0b0f3fba5a27924e57f351c3486e73b9c5.tar.gz abslibre-2e566c0b0f3fba5a27924e57f351c3486e73b9c5.tar.bz2 abslibre-2e566c0b0f3fba5a27924e57f351c3486e73b9c5.zip |
ttf-comic-neue: add new package to [pcr]
-rw-r--r-- | pcr/ttf-comic-neue/PKGBUILD | 20 | ||||
-rw-r--r-- | pcr/ttf-comic-neue/ttf-comic-neue.install | 15 |
2 files changed, 35 insertions, 0 deletions
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 <t.haider@deprecate.de> + +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" +} |