summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Whitt2017-05-03 16:02:25 -0400
committerAlex Whitt2017-05-03 16:02:25 -0400
commitf27168538d2936d30abe79cf81aa21cdeb2901ee (patch)
treeaa489dcb6d621fe2ed1a417ba01806f1d420f3f0
parentc6d516753a6fef4b12abfb052c67ee2ef7284d9e (diff)
downloadaur-f27168538d2936d30abe79cf81aa21cdeb2901ee.tar.gz
Adding install script
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD1
-rw-r--r--ttf-atom-file-icons.install15
3 files changed, 18 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 335b561a4b8e..bb3a1793d1f1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index b92abee1bd78..020df4fbc495 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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