diff options
author | Alex Whitt | 2017-05-03 16:02:25 -0400 |
---|---|---|
committer | Alex Whitt | 2017-05-03 16:02:25 -0400 |
commit | f27168538d2936d30abe79cf81aa21cdeb2901ee (patch) | |
tree | aa489dcb6d621fe2ed1a417ba01806f1d420f3f0 | |
parent | c6d516753a6fef4b12abfb052c67ee2ef7284d9e (diff) | |
download | aur-f27168538d2936d30abe79cf81aa21cdeb2901ee.tar.gz |
Adding install script
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 1 | ||||
-rw-r--r-- | ttf-atom-file-icons.install | 15 |
3 files changed, 18 insertions, 1 deletions
@@ -1,10 +1,11 @@ # Generated by mksrcinfo v8 -# Wed May 3 19:44:00 UTC 2017 +# Wed May 3 20:02:08 UTC 2017 pkgbase = ttf-atom-file-icons pkgdesc = Atom file-specific icons for improved visual grepping. pkgver = 2.1.4 pkgrel = 1 url = https://atom.io/packages/file-icons + install = ttf-atom-file-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 build() { cd "${srcdir}/${_pkgsrcname}-${pkgver}/fonts/" diff --git a/ttf-atom-file-icons.install b/ttf-atom-file-icons.install new file mode 100644 index 000000000000..db0951b4f496 --- /dev/null +++ b/ttf-atom-file-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 |