diff options
author | Alex Whitt | 2017-05-03 16:00:35 -0400 |
---|---|---|
committer | Alex Whitt | 2017-05-03 16:00:35 -0400 |
commit | 0b042e68a777de2eac5ecc020bf377bd35120a01 (patch) | |
tree | c545a164096425e688276c8f26429c8958de7b03 | |
parent | e309952245cc55c3d028ffb7d8204057b53f6e62 (diff) | |
download | aur-0b042e68a777de2eac5ecc020bf377bd35120a01.tar.gz |
Adding install script
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 1 | ||||
-rw-r--r-- | ttf-all-the-icons.install | 15 |
3 files changed, 18 insertions, 1 deletions
@@ -1,10 +1,11 @@ # Generated by mksrcinfo v8 -# Wed May 3 19:45:23 UTC 2017 +# Wed May 3 19:55:06 UTC 2017 pkgbase = ttf-all-the-icons pkgdesc = Icon font for all-the-icons.el (A utility package to collect various Icon Fonts and propertize them within Emacs.) pkgver = 2.5.2 pkgrel = 1 url = https://github.com/domtronn/all-the-icons.el + install = ttf-all-the-icons.install arch = any license = MIT makedepends = woff2-git @@ -15,6 +15,7 @@ depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils') makedepends=('woff2-git') source=("$pkgname-$pkgver.tar.gz::https://github.com/${_pkgmaintainer}/${_pkgsrcname}/archive/${_versionprefix}${pkgver}.tar.gz") sha256sums=('SKIP') +install=$pkgname.install package() { cd "${srcdir}/${_pkgsrcname}-${pkgver}/" diff --git a/ttf-all-the-icons.install b/ttf-all-the-icons.install new file mode 100644 index 000000000000..db0951b4f496 --- /dev/null +++ b/ttf-all-the-icons.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -fs >/dev/null + mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1 + mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1 + echo " ...done." +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}
\ No newline at end of file |