summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-26 19:30:13 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-12-26 19:31:18 -0300
commit138b7269f4d3a3f7bf645ea13b43e1ec749e2519 (patch)
treeb2f758d70e497675c1faf6e500697709bae79622
parentf49a2d01f261598543bc03d7d9910c93c977aebc (diff)
ttf-gentium-plus: add new package to [pcr] -> https://labs.parabola.nu/issues/900
-rw-r--r--pcr/ttf-gentium-plus/PKGBUILD27
-rw-r--r--pcr/ttf-gentium-plus/ttf-gentium-plus.install16
2 files changed, 43 insertions, 0 deletions
diff --git a/pcr/ttf-gentium-plus/PKGBUILD b/pcr/ttf-gentium-plus/PKGBUILD
new file mode 100644
index 000000000..5ac52c486
--- /dev/null
+++ b/pcr/ttf-gentium-plus/PKGBUILD
@@ -0,0 +1,27 @@
+pkgname=ttf-gentium-plus
+_pkgname=GentiumPlus
+_pkgsubname=Compact
+pkgver=5.000
+pkgrel=1
+pkgdesc="Fonts based on the original Gentium design with more extended Latin glyphs (Unicode 5.1), archaic Greek symbols, and full extended Cyrillic script support"
+arch=('any')
+url="http://scripts.sil.org/Gentium"
+license=('custom:OFL')
+depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
+makedepends=('unzip')
+conflicts=('ttf-sil-fonts')
+install=ttf-gentium-plus.install
+source=("http://scripts.sil.org/cms/scripts/render_download.php?&format=file&media_id=$_pkgname-$pkgver.zip&filename=$_pkgname-$pkgver.zip"
+ "http://scripts.sil.org/cms/scripts/render_download.php?format=file&media_id=GentiumPlusCompact-5.000b.zip&filename=GentiumPlusCompact-5.000.zip")
+sha256sums=('335911f17bd2de4e43742e1d0367cfeff19a90abf7ed604f100a42705042e154'
+ '1d8a4ff03dce90f6002b008a5e37f890c409bc22e4e26561b67f3f3c40991b5c')
+
+
+package() {
+ cd "${_pkgname}-${pkgver}"
+ install -D -m644 OFL.txt "$pkgdir"/usr/share/licenses/$pkgname/OFL
+ install -d "$pkgdir"/usr/share/fonts/TTF
+ install -m644 *.ttf "$pkgdir"/usr/share/fonts/TTF/
+ cd "$srcdir/$_pkgname$_pkgsubname-$pkgver"
+ install -m644 *.ttf "$pkgdir"/usr/share/fonts/TTF/
+}
diff --git a/pcr/ttf-gentium-plus/ttf-gentium-plus.install b/pcr/ttf-gentium-plus/ttf-gentium-plus.install
new file mode 100644
index 000000000..7d26d0c2a
--- /dev/null
+++ b/pcr/ttf-gentium-plus/ttf-gentium-plus.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
+}
+