summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2016-10-24 19:35:39 +0300
committerCaleb Maclennan2016-10-24 19:35:39 +0300
commit3c90d3e91e13c6cbac99a1225ffa82a2ee20fd4c (patch)
tree47bc32c8bc2f40a1419a106e10781e369565a874
downloadaur-3c90d3e91e13c6cbac99a1225ffa82a2ee20fd4c.tar.gz
Inital build of Hananiah font
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD22
-rw-r--r--ttf-hananiah.install15
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..62ce21327acb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Mon Oct 24 16:30:44 UTC 2016
+pkgbase = ttf-hananiah
+ pkgdesc = A Hebrew simulation typeface derived from Ezra SIL
+ pkgver = 2
+ pkgrel = 1
+ url = https://fontlibrary.org/en/font/hananiah
+ install = ttf-hananiah.install
+ arch = any
+ license = custom:OFL
+ source = https://fontlibrary.org/assets/downloads/hananiah/5b316c3d0960044bc6c85e964c1de25f/hananiah.zip
+ sha256sums = c8dd72f032508d7702b9d571efd9c45cc2ccb980f8a0ba8df2ee0c04e9248a12
+
+pkgname = ttf-hananiah
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..d4f603a8a5e0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+
+pkgname=ttf-hananiah
+pkgver=2
+pkgrel=1
+pkgdesc="A Hebrew simulation typeface derived from Ezra SIL"
+arch=('any')
+url="https://fontlibrary.org/en/font/hananiah"
+license=('custom:OFL')
+install=ttf-hananiah.install
+source=("https://fontlibrary.org/assets/downloads/hananiah/5b316c3d0960044bc6c85e964c1de25f/${pkgname#ttf-}.zip")
+sha256sums=('c8dd72f032508d7702b9d571efd9c45cc2ccb980f8a0ba8df2ee0c04e9248a12')
+
+package() {
+ cd "$srcdir/${pkgname#ttf-}"
+ install -d "$pkgdir/usr/share/fonts/TTF"
+ install -Dm644 *.ttf "$pkgdir/usr/share/fonts/TTF"
+
+ # docs
+ install -d $pkgdir/usr/share/doc/$pkgname
+ install -m644 *.pdf "$pkgdir/usr/share/doc/$pkgname/"
+}
diff --git a/ttf-hananiah.install b/ttf-hananiah.install
new file mode 100644
index 000000000000..e810c1531578
--- /dev/null
+++ b/ttf-hananiah.install
@@ -0,0 +1,15 @@
+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
+}
+
+post_remove() {
+ post_install $1
+} \ No newline at end of file