[arch-commits] Commit in gqview/trunk (PKGBUILD gqview.install)

Eric Bélanger eric at archlinux.org
Sun Sep 18 07:13:39 UTC 2011


    Date: Sunday, September 18, 2011 @ 03:13:39
  Author: eric
Revision: 138173

upgpkg: gqview 2.0.4-4

Add .install file to run update-desktop-database, Clean up PKGBUILD

Added:
  gqview/trunk/gqview.install
Modified:
  gqview/trunk/PKGBUILD

----------------+
 PKGBUILD       |   19 ++++++++++++-------
 gqview.install |   11 +++++++++++
 2 files changed, 23 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-09-18 06:56:19 UTC (rev 138172)
+++ PKGBUILD	2011-09-18 07:13:39 UTC (rev 138173)
@@ -1,20 +1,25 @@
 # $Id$
 # Maintainer: dorphell <dorphell at archlinux.org>
-# Committer: Judd Vinet <jvinet at zeroflux.org>
+
 pkgname=gqview
 pkgver=2.0.4
-pkgrel=3
+pkgrel=4
 pkgdesc="An image browser and viewer"
 arch=('i686' 'x86_64')
 url="http://gqview.sourceforge.net/"
 license=('GPL')
-depends=('gtk2')
+depends=('gtk2' 'desktop-file-utils')
+install=gqview.install
 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
 md5sums=('7196deab04db94cec2167637cddc02f9')
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  CPPFLAGS="-D_FILE_OFFSET_BITS=64" ./configure --prefix=/usr --mandir=/usr/share/man || return 1
-  make || return 1
-  make DESTDIR=${pkgdir} install || return 1
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  CPPFLAGS="-D_FILE_OFFSET_BITS=64" ./configure --prefix=/usr --mandir=/usr/share/man
+  make
 }
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+}

Added: gqview.install
===================================================================
--- gqview.install	                        (rev 0)
+++ gqview.install	2011-09-18 07:13:39 UTC (rev 138173)
@@ -0,0 +1,11 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}




More information about the arch-commits mailing list