summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Whitt2017-05-03 16:00:35 -0400
committerAlex Whitt2017-05-03 16:00:35 -0400
commit0b042e68a777de2eac5ecc020bf377bd35120a01 (patch)
treec545a164096425e688276c8f26429c8958de7b03
parente309952245cc55c3d028ffb7d8204057b53f6e62 (diff)
downloadaur-0b042e68a777de2eac5ecc020bf377bd35120a01.tar.gz
Adding install script
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD1
-rw-r--r--ttf-all-the-icons.install15
3 files changed, 18 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 16ae703c0db9..bd22995e6253 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index a1db16598825..1a12b34d52fc 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
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