From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/djview4/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ community/djview4/install | 11 +++++++++++ 2 files changed, 45 insertions(+) create mode 100644 community/djview4/PKGBUILD create mode 100644 community/djview4/install (limited to 'community/djview4') diff --git a/community/djview4/PKGBUILD b/community/djview4/PKGBUILD new file mode 100644 index 000000000..94cf3dfec --- /dev/null +++ b/community/djview4/PKGBUILD @@ -0,0 +1,34 @@ +# Contributor: Paulo Matias +# Contributor: Leslie P. Polzer +# Contributor: erm67 +# Contributor: Daniel J Griffiths +# Maintainer: Gaetan Bisson + +pkgname=djview4 +pkgver=4.7 +pkgrel=1 +pkgdesc='Portable DjVu viewer and browser plugin' +arch=('i686' 'x86_64') +url='http://djvu.sourceforge.net/djview4.html' +license=('GPL') +depends=('qt' 'djvulibre') +source=("http://downloads.sourceforge.net/djvu/djview-${pkgver}.tar.gz") +sha1sums=('6c0c9c285caaf6211454c36898801c2eda799c8b') +install=install + +build() { + cd "${srcdir}/djview-${pkgver}" + QTDIR=/usr ./configure --prefix=/usr + sed 's/netscape/mozilla/g' -i nsdejavu/Makefile + make +} + +package() { + cd "${srcdir}/djview-${pkgver}" + make DESTDIR="${pkgdir}" install-djview install-nsdejavu + + install -Dm644 desktopfiles/hi32-djview4.png "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/djvulibre-djview4.png + install -Dm644 desktopfiles/hi64-djview4.png "${pkgdir}"/usr/share/icons/hicolor/64x64/apps/djvulibre-djview4.png + install -Dm644 desktopfiles/hi64-djview4.png "${pkgdir}"/usr/share/pixmaps/djvulibre-djview4.png + install -Dm644 desktopfiles/djvulibre-djview4.desktop "${pkgdir}"/usr/share/applications/djvulibre-djview4.desktop +} diff --git a/community/djview4/install b/community/djview4/install new file mode 100644 index 000000000..e70c054ec --- /dev/null +++ b/community/djview4/install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf