summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorle342018-09-03 16:43:55 +1100
committerle342018-09-03 16:43:55 +1100
commit96d7d516de2da31db9f17ef1a3771d6d25693724 (patch)
treee4b54c827c4e29f42c56872bcaebff72bc29f807
downloadaur-96d7d516de2da31db9f17ef1a3771d6d25693724.tar.gz
Initial
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD22
-rw-r--r--ttf-churchslavonic.install16
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..d248b19ecf2d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Mon Sep 3 05:43:29 UTC 2018
+pkgbase = ttf-churchslavonic
+ pkgdesc = Unicode-encoded TTF fonts for Church Slavonic
+ pkgver = 1.1
+ pkgrel = 1
+ url = https://www.ctan.org/pkg/fonts-churchslavonic
+ install = ttf-churchslavonic.install
+ arch = any
+ license = SIL
+ license = GNUv3
+ source = http://mirrors.ctan.org/fonts/ttf-churchslavonic.zip
+ md5sums = 9567127c1139ab8a03842aefc6962974
+
+pkgname = ttf-churchslavonic
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..4098b1bc21b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: 4leks4ndr <orthodox dot tk at gmail dot com>
+pkgname=ttf-churchslavonic
+pkgver=1.1
+pkgrel=1
+pkgdesc="Unicode-encoded TTF fonts for Church Slavonic"
+arch=('any')
+license=('SIL' 'GNUv3')
+url="https://github.com/typiconman/fonts-cu/"
+url="https://www.ctan.org/pkg/fonts-churchslavonic"
+install=$pkgname.install
+source=("http://mirrors.ctan.org/fonts/${pkgname}.zip")
+
+package() {
+ cd "$srcdir/${pkgname}"
+ mkdir -p $pkgdir/usr/share/{fonts/OTF,fonts/TTF,licenses/$pkgname}/
+ install -Dm644 *.ttf $pkgdir/usr/share/fonts/TTF/
+ install -Dm644 docs/fonts-churchslavonic.pdf $pkgdir/usr/share/doc/$pkgname/fonts-churchslavonic.pdf
+ install -Dm644 docs/fonts-churchslavonic.tex $pkgdir/usr/share/doc/$pkgname/fonts-churchslavonic.tex
+ install -Dm644 *.txt LICENSE $pkgdir/usr/share/licenses/$pkgname/
+}
+
+md5sums=('9567127c1139ab8a03842aefc6962974')
diff --git a/ttf-churchslavonic.install b/ttf-churchslavonic.install
new file mode 100644
index 000000000000..905d8c8c7702
--- /dev/null
+++ b/ttf-churchslavonic.install
@@ -0,0 +1,16 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -fs >/dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+