[arch-commits] Commit in (5 files)
Gaetan Bisson
bisson at archlinux.org
Fri Feb 20 08:04:11 UTC 2015
Date: Friday, February 20, 2015 @ 09:04:11
Author: bisson
Revision: 128013
switch to djview
Added:
djview/
djview/repos/
djview/trunk/
djview/trunk/PKGBUILD
djview/trunk/install
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
install | 12 ++++++++++++
2 files changed, 53 insertions(+)
Added: djview/trunk/PKGBUILD
===================================================================
--- djview/trunk/PKGBUILD (rev 0)
+++ djview/trunk/PKGBUILD 2015-02-20 08:04:11 UTC (rev 128013)
@@ -0,0 +1,41 @@
+# $Id$
+# Contributor: Paulo Matias <matias.archlinux-br.org>
+# Contributor: Leslie P. Polzer <polzer.gnu.org>
+# Contributor: erm67 <erm67.yahoo.it>
+# Contributor: Daniel J Griffiths
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=djview
+pkgver=4.10
+pkgrel=1
+pkgdesc='Portable DjVu viewer and browser plugin'
+url='http://djvu.sourceforge.net/djview4.html'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('qt4' 'djvulibre')
+source=("http://downloads.sourceforge.net/djvu/${pkgname}-${pkgver}.tar.gz")
+sha1sums=('7526d23aa501ce34468e42f094f49b6b96cce186')
+
+conflicts=('djview4')
+provides=('djview4')
+replaces=('djview4')
+
+install=install
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./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
+}
Property changes on: djview/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: djview/trunk/install
===================================================================
--- djview/trunk/install (rev 0)
+++ djview/trunk/install 2015-02-20 08:04:11 UTC (rev 128013)
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null || true
+ update-desktop-database -q || true
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list