[arch-commits] CVS update of extra/office/djvulibre (PKGBUILD djvulibre.install)

Jan de Groot jgc at archlinux.org
Sun Jun 17 14:20:11 EDT 2007


    Date: Sunday, June 17, 2007 @ 14:20:11
  Author: jgc
    Path: /home/cvs-extra/extra/office/djvulibre

Modified: PKGBUILD (1.9 -> 1.10) djvulibre.install (1.1 -> 1.2)

upgpkg: djvulibre 3.5.19-1
Install XDG stuff by hand, upstream uses some flaky script


-------------------+
 PKGBUILD          |   35 +++++++++++++++++++----------------
 djvulibre.install |    1 +
 2 files changed, 20 insertions(+), 16 deletions(-)


Index: extra/office/djvulibre/PKGBUILD
diff -u extra/office/djvulibre/PKGBUILD:1.9 extra/office/djvulibre/PKGBUILD:1.10
--- extra/office/djvulibre/PKGBUILD:1.9	Fri Dec 29 08:49:13 2006
+++ extra/office/djvulibre/PKGBUILD	Sun Jun 17 14:20:11 2007
@@ -1,34 +1,37 @@
-# $Id: PKGBUILD,v 1.9 2006/12/29 13:49:13 jgc Exp $
+# $Id: PKGBUILD,v 1.10 2007/06/17 18:20:11 jgc Exp $
 # Maintainer: damir <damir at archlinux.org>
 # Contributor: mgushee
 
 pkgname=djvulibre
-pkgver=3.5.17
-pkgrel=3
+pkgver=3.5.19
+pkgrel=1
 pkgdesc="Suite to create, manipulate and view DjVu ('déjà vu') documents"
 arch=("i686" "x86_64")
+license=('GPL')
 url="http://djvulibre.djvuzone.org/index.html"
-depends=('libtiff' 'hicolor-icon-theme' 'qt' 'desktop-file-utils' 'libdjvu')
+depends=('libtiff' 'hicolor-icon-theme' 'qt' 'desktop-file-utils' 'libdjvu' 'shared-mime-info')
 makedepends=('pkgconfig')
 install=djvulibre.install
-source=(http://heanet.dl.sourceforge.net/djvu/${pkgname}-${pkgver}.tar.gz) 
-md5sums=('18e71eec1f7d59ef4710b405ea64650e')
+source=(http://downloads.sourceforge.net/djvu/${pkgname}-${pkgver}.tar.gz) 
+md5sums=('0330d87ad337e408e21e1018eb511839')
 
 build() {
   export MAKEFLAGS="-j1"
   [ -z "${QTDIR}" ] && . /etc/profile.d/qt.sh
   cd ${startdir}/src/${pkgname}-${pkgver}
   ./configure --prefix=/usr
-  make LIBDJVU="`pkg-config --libs ddjvuapi`" SUBDIRS_STD=tools || return 1
-  make LIBDJVU="`pkg-config --libs ddjvuapi`" SUBDIRS_STD=tools \
-       DESTDIR=${startdir}/pkg plugindir=/opt/mozilla/lib/plugins install || return 1
+  make LIBDJVU="`pkg-config --libs ddjvuapi`" SUBDIRS_FIRST=tools || return 1
+  make LIBDJVU="`pkg-config --libs ddjvuapi`" SUBDIRS_FIRST=tools \
+       DESTDIR=${startdir}/pkg plugindir=/opt/mozilla/lib/plugins \
+       install-utils install-gui install-i18n || return 1
 
-  #Install XDG standard desktop file
-  mkdir -p ${startdir}/pkg/usr/share/applications
-  install -m644 gui/desktop/djview.desktop ${startdir}/pkg/usr/share/applications/
+  #Install icons, launcher files, mime-types.
+  install -D -m644 desktopfiles/hi22-djvu.png ${startdir}/pkg/usr/share/icons/22x22/mimetypes/image-vnd.djvu.mime.png
+  install -D -m644 desktopfiles/hi32-djvu.png ${startdir}/pkg/usr/share/icons/32x32/mimetypes/image-vnd.djvu.mime.png
+  install -D -m644 desktopfiles/hi48-djvu.png ${startdir}/pkg/usr/share/icons/48x48/mimetypes/image-vnd.djvu.mime.png
 
-  #Remove all GNOME and KDE specific icon/mime/launcher files, both support XDG specs
-  rm -rf ${startdir}/pkg/opt/kde
-  rm -rf ${startdir}/pkg/usr/share/pixmaps
-  rm -rf ${startdir}/pkg/usr/share/mime-info
+  install -D -m644 desktopfiles/djvulibre-mime.xml ${startdir}/pkg/usr/share/mime/packages/djvulibre-mime.xml
+
+  install -D -m644 desktopfiles/hi32-djview3.png ${startdir}/pkg/usr/share/icons/hicolor/32x32/apps/djvulibre-djview3.png
+  install -D -m644 desktopfiles/djvulibre-djview3.desktop ${startdir}/pkg/usr/share/applications/djvulibre-djview3.desktop
 }
Index: extra/office/djvulibre/djvulibre.install
diff -u extra/office/djvulibre/djvulibre.install:1.1 extra/office/djvulibre/djvulibre.install:1.2
--- extra/office/djvulibre/djvulibre.install:1.1	Fri Dec 29 08:49:43 2006
+++ extra/office/djvulibre/djvulibre.install	Sun Jun 17 14:20:11 2007
@@ -3,6 +3,7 @@
     gtk-update-icon-cache -q -f /usr/share/icons/hicolor
   fi
   update-desktop-database -q
+  update-mime-database usr/share/mime
 }
 
 post_upgrade() {




More information about the arch-commits mailing list