[arch-commits] Commit in djview/trunk (PKGBUILD)

Gaetan Bisson bisson at archlinux.org
Fri Feb 20 08:28:00 UTC 2015


    Date: Friday, February 20, 2015 @ 09:27:59
  Author: bisson
Revision: 128016

upstream update

Modified:
  djview/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-02-20 08:26:38 UTC (rev 128015)
+++ PKGBUILD	2015-02-20 08:27:59 UTC (rev 128016)
@@ -12,7 +12,8 @@
 url='http://djvu.sourceforge.net/djview4.html'
 license=('GPL')
 arch=('i686' 'x86_64')
-depends=('qt4' 'djvulibre')
+makedepends=('qt5-tools')
+depends=('qt5-base' 'djvulibre')
 source=("http://downloads.sourceforge.net/djvu/${pkgname}-${pkgver}.tar.gz")
 sha1sums=('7526d23aa501ce34468e42f094f49b6b96cce186')
 
@@ -24,18 +25,13 @@
 
 build() {
 	cd "${srcdir}/${pkgname}-${pkgver}"
+	export QMAKE=qmake-qt5
 	./configure --prefix=/usr
-	sed 's/netscape/mozilla/g' -i nsdejavu/Makefile
 	make
 }
 
 package() {
 	cd "${srcdir}/${pkgname}-${pkgver}"
-	make DESTDIR="${pkgdir}" install-djview install-nsdejavu
-
-	cd desktopfiles
-	install -Dm644 hi32-djview4.png "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/djvulibre-djview4.png
-	install -Dm644 hi64-djview4.png "${pkgdir}"/usr/share/icons/hicolor/64x64/apps/djvulibre-djview4.png
-	install -Dm644 hi64-djview4.png "${pkgdir}"/usr/share/pixmaps/djvulibre-djview4.png
-	install -Dm644 djvulibre-djview4.desktop "${pkgdir}"/usr/share/applications/djvulibre-djview4.desktop
+	make DESTDIR="${pkgdir}" install
+	ln -s djview "${pkgdir}"/usr/bin/djview4
 }



More information about the arch-commits mailing list