summaryrefslogtreecommitdiff
path: root/otf-grundschrift
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-07-17 14:16:05 +0200
committerErich Eckner <git@eckner.net>2021-07-17 14:16:05 +0200
commitc25725dfefdaa3e8525e76e21b01f2c7aef6b75e (patch)
tree046b85cf2fc043efee938de6acc14de279331327 /otf-grundschrift
parentf49fa2930743fd4a39b87d0d86e5e79975673424 (diff)
downloadarchlinuxewe-c25725dfefdaa3e8525e76e21b01f2c7aef6b75e.tar.xz
otf-grundschrift neu
Diffstat (limited to 'otf-grundschrift')
-rw-r--r--otf-grundschrift/PKGBUILD22
-rw-r--r--otf-grundschrift/otf.install15
2 files changed, 37 insertions, 0 deletions
diff --git a/otf-grundschrift/PKGBUILD b/otf-grundschrift/PKGBUILD
new file mode 100644
index 000000000..42d1db4ea
--- /dev/null
+++ b/otf-grundschrift/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Florian Döllinger <doellinger dot florian at gmail dot com>
+_pkgname=grundschrift
+pkgname=otf-grundschrift
+pkgver=0.1
+pkgrel=1
+pkgdesc="Block letter oriented font used in german schools for teaching individual handwriting."
+arch=('any')
+url="https://fontlibrary.org/en/font/grundschrift"
+license=('CCPL:by')
+groups=()
+depends=('fontconfig' 'xorg-bdftopcf' 'xorg-mkfontdir' 'xorg-mkfontscale' 'xorg-font-util')
+install=otf.install
+changelog=
+source=("https://fontlibrary.org/assets/downloads/grundschrift/993f56b0c71f38ffca0d804ec48f4587/grundschrift.zip")
+md5sums=("993f56b0c71f38ffca0d804ec48f4587")
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -d $pkgdir/usr/share/fonts/OTF
+ install -Dm644 ./* $pkgdir/usr/share/fonts/OTF
+}
diff --git a/otf-grundschrift/otf.install b/otf-grundschrift/otf.install
new file mode 100644
index 000000000..f471542a3
--- /dev/null
+++ b/otf-grundschrift/otf.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -fs >/dev/null
+ mkfontscale /usr/share/fonts/OTF
+ mkfontdir /usr/share/fonts/OTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}