diff options
author | Jonathan Reams | 2016-01-30 12:25:54 -0500 |
---|---|---|
committer | Jonathan Reams | 2016-01-30 12:25:54 -0500 |
commit | 3b66e71bb429c416cd417e563cea5bcd216b4b2a (patch) | |
tree | 2e2e2b18bb16cb5796fc131267fa5e921d2647b0 /PKGBUILD | |
parent | 2204486edeaa267ed8c1015a5c0676d38f856aa1 (diff) | |
download | aur-3b66e71bb429c416cd417e563cea5bcd216b4b2a.tar.gz |
Add post-install hook to generate glib schemas
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -1,7 +1,7 @@ # Maintainer: jbreams@gmail.com pkgname=gonepass-git pkgver=r27.38d00f3 -pkgrel=1 +pkgrel=2 pkgdesc="GTK+ 1Password reader" arch=('x86_64') url="https://github.com/jbreams/gonepass" @@ -40,3 +40,22 @@ package() { cd "$srcdir/${pkgname%-git}/build" make DESTDIR=$pkgdir/ install } + +post_install() { + glib-compile-schemas /usr/share/glib-2.0/schemas + update-desktop-database -q +} + +pre_upgrade() { + if [ -f /usr/share/glib-2.0/schemas/gonepass.gschema.xml ]; then + gconfpkg --uninstall gonepass + fi +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |