summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris2020-04-16 21:19:07 +0900
committerChris2020-04-16 21:19:07 +0900
commitdbf1df4c3719375d5954af18a319574c2db9db97 (patch)
tree047751b65e8cc67df032154a47e9a2226b6c0c18
downloadaur-dbf1df4c3719375d5954af18a319574c2db9db97.tar.gz
initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD21
-rw-r--r--ttf.install15
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..64abaf51c8d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ttf-maximilian
+ pkgdesc = Maximilian geschaffen 1914 von Rudolf Koch. Digitalisiert durch Dieter Steffmann, Kreuztal.
+ pkgver = 1.0
+ pkgrel = 1
+ url = http://www.steffmann.de/
+ install = ttf.install
+ arch = any
+ license = custom:FFC
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = http://dl.1001fonts.com/maximilian.zip
+ md5sums = 5c772d58c0259b5db29d63da46d54805
+
+pkgname = ttf-maximilian
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4a8328c98be
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: jesuschroist <chris@qlab.pro>
+
+pkgname=ttf-maximilian
+pkgver=1.0
+pkgrel=1
+pkgdesc="Maximilian geschaffen 1914 von Rudolf Koch. Digitalisiert durch Dieter Steffmann, Kreuztal."
+arch=('any')
+url="http://www.steffmann.de/"
+license=('custom:FFC')
+depends=('fontconfig' 'xorg-font-utils')
+install=ttf.install
+source=(http://dl.1001fonts.com/maximilian.zip)
+md5sums=('5c772d58c0259b5db29d63da46d54805')
+
+package() {
+ cd "$srcdir"
+ install -dm755 "$pkgdir/usr/share/fonts/TTF"
+ install -Dm644 Maximilian.ttf "$pkgdir/usr/share/fonts/TTF"
+ install -Dm644 MaximilianZierbuchstaben.ttf "$pkgdir/usr/share/fonts/TTF"
+ install -Dm644 1001fonts-maximilian-eula.txt "$pkgdir/usr/share/licenses/$pkgname"
+}
diff --git a/ttf.install b/ttf.install
new file mode 100644
index 00000000000..33b7d65490d
--- /dev/null
+++ b/ttf.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "==> Rebuilding 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
+}