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

Eric Belanger eric at archlinux.org
Wed Oct 15 19:43:28 UTC 2008


    Date: Wednesday, October 15, 2008 @ 15:43:28
  Author: eric
Revision: 15576

upgpkg: epdfview 0.1.6-9
    fixed icons location and desktop file (close FS#11733)

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

------------------+
 PKGBUILD         |   26 ++++++++++++++++----------
 epdfview.install |   11 +++++++++++
 2 files changed, 27 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-10-15 17:45:38 UTC (rev 15575)
+++ PKGBUILD	2008-10-15 19:43:28 UTC (rev 15576)
@@ -3,25 +3,31 @@
 
 pkgname=epdfview
 pkgver=0.1.6
-pkgrel=8
+pkgrel=9
 pkgdesc="A free lightweight PDF document viewer."
-license=(GPL)
-arch=(i686 x86_64)
-depends=('poppler-glib>=0.8.3' 'heimdal>=1.2-1' 'libcups>=1.3.7-2' 'gnutls>=2.4.1')
+arch=('i686' 'x86_64')
+url="http://www.emma-soft.com/projects/epdfview/"
+license=('GPL')
+depends=('poppler-glib>=0.8.3' 'heimdal>=1.2-1' 'libcups>=1.3.7-2' 'gnutls>=2.4.1' 'desktop-file-utils')
 makedepends=('pkgconfig')
+install=epdfview.install
 source=(http://www.emma-soft.com/projects/epdfview/chrome/site/releases/epdfview-${pkgver}.tar.bz2
 	epdfview-0.1.6-print-segfault.patch
 	IDocumentLink.patch)
-url="http://www.emma-soft.com/projects/epdfview/"
-md5sums=('cce9edb41b4a8308e0ef0eea24b5a1ab'
-         'c083ee8e0e226b308e1c38cb94ee42e7'
+md5sums=('cce9edb41b4a8308e0ef0eea24b5a1ab' 'c083ee8e0e226b308e1c38cb94ee42e7'\
          '65444f1e85b635c37a28e070fe43eeaf')
 
 build() {
-  cd ${startdir}/src/${pkgname}-${pkgver}
+  cd ${srcdir}/${pkgname}-${pkgver}
   patch -Np0 -i ../epdfview-0.1.6-print-segfault.patch || return 1
-  patch -Np0 -i ${startdir}/src/IDocumentLink.patch || return 1
+  patch -Np0 -i ../IDocumentLink.patch || return 1
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
   make || return 1
-  make DESTDIR=${startdir}/pkg install || return 1
+  make DESTDIR=${pkgdir} install || return 1
+# fixing icons location
+  sed -i 's/postscript-viewer.png/icon_epdfview-48.png/' ${pkgdir}/usr/share/applications/epdfview.desktop || return 1
+  install -d ${pkgdir}/usr/share/icons/hicolor/{24x24,32x32,48x48}/apps || return 1
+  install -m644 data/icon_epdfview-24.png ${pkgdir}/usr/share/icons/hicolor/24x24/apps || return 1
+  install -m644 data/icon_epdfview-32.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps || return 1
+  install -m644 data/icon_epdfview-48.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps || return 1
 }

Added: epdfview.install
===================================================================
--- epdfview.install	                        (rev 0)
+++ epdfview.install	2008-10-15 19:43:28 UTC (rev 15576)
@@ -0,0 +1,11 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}




More information about the arch-commits mailing list