summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/ttf-comic-neue/PKGBUILD20
-rw-r--r--pcr/ttf-comic-neue/ttf-comic-neue.install15
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"
+}