summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Shparber2015-11-28 21:55:54 -0500
committerOleg Shparber2015-11-28 21:55:54 -0500
commite2b9ce13f93c0aab251352e1cdd2bc1fc1166768 (patch)
treed98b5eb88f23e023837d180a7c1c21b96cfe9f19
parent66e6012552a938ff4604474319fef6ae9f74df9e (diff)
downloadaur-e2b9ce13f93c0aab251352e1cdd2bc1fc1166768.tar.gz
zeal-git: Run xdg-icon-resource after installation
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD7
-rw-r--r--zeal-git.install12
3 files changed, 20 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2cee1040b13..47c85935d1d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = zeal-git
pkgdesc = An offline API documentation browser
pkgver = 0.2.1.9.ga17a0bb
- pkgrel = 1
- url = http://zealdocs.org/
+ pkgrel = 2
+ url = https://zealdocs.org/
+ install = zeal-git.install
arch = i686
arch = x86_64
license = GPL3
@@ -12,6 +13,7 @@ pkgbase = zeal-git
depends = qt5-imageformats
depends = qt5-x11extras
depends = xcb-util-keysyms
+ depends = xdg-utils
source = git+https://github.com/zealdocs/zeal
sha1sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 3bf8ade08cf..70877ae133b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,15 +5,16 @@
pkgname=zeal-git
_appname=zeal
pkgver=0.2.1.9.ga17a0bb
-pkgrel=1
+pkgrel=2
pkgdesc="An offline API documentation browser"
arch=('i686' 'x86_64')
-url="http://zealdocs.org/"
+url="https://zealdocs.org/"
license=('GPL3')
depends=('libarchive' 'qt5-webkit' 'qt5-imageformats' 'qt5-x11extras'
- 'xcb-util-keysyms')
+ 'xcb-util-keysyms' 'xdg-utils')
makedepends=('git')
source=("git+https://github.com/zealdocs/$_appname")
+install=zeal-git.install
sha1sums=('SKIP')
pkgver() {
diff --git a/zeal-git.install b/zeal-git.install
new file mode 100644
index 00000000000..063f500c7c9
--- /dev/null
+++ b/zeal-git.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate &>/dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+