summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens John2015-09-16 14:50:19 +0200
committerJens John2015-09-16 14:50:19 +0200
commit5aa4b7ada252fae51b39d3263e47458fe157f6e8 (patch)
tree2215bb07699303b0124b6d99dbdd39031568acfb
parent7a7fabaf0641617986a3dec94a9d3f0f6f520364 (diff)
downloadaur-5aa4b7ada252fae51b39d3263e47458fe157f6e8.tar.gz
Add .install file
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD5
-rw-r--r--ttf-din1451.install18
3 files changed, 22 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9dd3e0721a43..6536dc113971 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = ttf-din1451
pkgver = 20100402
pkgrel = 1
url = https://https://github.com/2ion/ttf-din1451
+ install = ttf-din1451.install
arch = any
license = custom:unknown
source = https://github.com/2ion/ttf-din1451/archive/20100402.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index d4f3c7ed1930..b99d148c6045 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,13 +4,14 @@ pkgver=20100402
pkgrel=1
pkgdesc='Clone of the DIN1451 font as used on German roadsigns'
arch=('any')
-url="https://https://github.com/2ion/ttf-din1451"
+url='https://https://github.com/2ion/ttf-din1451'
license=('custom:unknown')
source=("https://github.com/2ion/ttf-din1451/archive/${pkgver}.tar.gz")
sha256sums=('a36834c573c4504e088d90ce2f85237a015ee69a15412612e7e6a109fef7ac29')
+install=${pkgname}.install
package() {
- cd "$pkgname-$pkgver/postprocessed"
+ cd "${pkgname}-${pkgver}/postprocessed"
for fontfile in *.ttf; do
install -Dm644 "$fontfile" "${pkgdir}/usr/share/fonts/${pkgname}/${fontfile}"
done
diff --git a/ttf-din1451.install b/ttf-din1451.install
new file mode 100644
index 000000000000..06866c8ba389
--- /dev/null
+++ b/ttf-din1451.install
@@ -0,0 +1,18 @@
+post_install()
+{
+ echo -n "Updating font cache ... "
+ fc-cache -sf > /dev/null
+ mkfontscale /usr/share/fonts/ttf-din1451
+ mkfontdir /usr/share/fonts/ttf-din1451
+ echo "done."
+}
+
+post_upgrade()
+{
+ post_install
+}
+
+post_remove()
+{
+ post_install
+}