diff options
author | Jens John | 2015-09-16 14:50:19 +0200 |
---|---|---|
committer | Jens John | 2015-09-16 14:50:19 +0200 |
commit | 5aa4b7ada252fae51b39d3263e47458fe157f6e8 (patch) | |
tree | 2215bb07699303b0124b6d99dbdd39031568acfb | |
parent | 7a7fabaf0641617986a3dec94a9d3f0f6f520364 (diff) | |
download | aur-5aa4b7ada252fae51b39d3263e47458fe157f6e8.tar.gz |
Add .install file
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | ttf-din1451.install | 18 |
3 files changed, 22 insertions, 2 deletions
@@ -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 @@ -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 +} |