summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo Bargen2015-10-20 09:19:07 +0200
committerDanilo Bargen2015-10-20 09:19:07 +0200
commit6300a01a163fe111ab06ad329dc9acaa1defc748 (patch)
treee22e08d5b9c3f63b9aa7b0116e8252a617fb8087
parent26a4e292be70d1c039a5e537ac0dbe8e58b95626 (diff)
downloadaur-6300a01a163fe111ab06ad329dc9acaa1defc748.tar.gz
Added librepcb-git.install file
-rw-r--r--PKGBUILD3
-rw-r--r--librepcb-git.install16
2 files changed, 18 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bfb8332cddd..085478a4b41 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=librepcb-git
_fullname=LibrePCB
pkgver=r549.95b8d1a
-pkgrel=1
+pkgrel=3
pkgdesc="LibrePCB is a free EDA software to develop printed circuit boards."
arch=('x86_64' 'i686')
url="http://librepcb.org/"
@@ -11,6 +11,7 @@ depends=('qt5-base' 'qt5-webkit' 'glu')
makedepends=('git' 'qconf')
provides=('librepcb')
conflicts=('librepcb')
+install=${pkgname}.install
source=('git+https://github.com/LibrePCB/LibrePCB')
md5sums=('SKIP')
diff --git a/librepcb-git.install b/librepcb-git.install
new file mode 100644
index 00000000000..423fbf48c24
--- /dev/null
+++ b/librepcb-git.install
@@ -0,0 +1,16 @@
+post_install() {
+ echo "Update icon cache..."
+ xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+ echo "Update mime database..."
+ update-mime-database usr/share/mime &> /dev/null
+ echo "Update desktop database..."
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ post_install "$1"
+}