From 1bd47d3e04c409582486ea3ec915d3b7899f6841 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 20 Feb 2013 00:04:38 -0800 Subject: Wed Feb 20 00:04:38 PST 2013 --- community/djview4/PKGBUILD | 13 ++++++------- community/djview4/install | 5 ++--- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'community/djview4') diff --git a/community/djview4/PKGBUILD b/community/djview4/PKGBUILD index 4cb58fc29..36e50c57c 100644 --- a/community/djview4/PKGBUILD +++ b/community/djview4/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 63534 2012-02-05 11:54:12Z ibiru $ +# $Id: PKGBUILD 84432 2013-02-19 00:14:18Z bisson $ # Contributor: Paulo Matias # Contributor: Leslie P. Polzer # Contributor: erm67 @@ -6,28 +6,27 @@ # Maintainer: Gaetan Bisson pkgname=djview4 -pkgver=4.8 -pkgrel=2 +pkgver=4.9 +pkgrel=1 pkgdesc='Portable DjVu viewer and browser plugin' url='http://djvu.sourceforge.net/djview4.html' license=('GPL') arch=('i686' 'x86_64') depends=('qt' 'djvulibre') source=("http://downloads.sourceforge.net/djvu/djview-${pkgver}.tar.gz") -sha1sums=('266d207afb63a1ee63eed054190bf88888fda572') +sha1sums=('07f97e32919bfb34ff2d59b928c47ffbc96dcfc5') install=install build() { - cd "${srcdir}/djview-${pkgver}" + cd "${srcdir}/${pkgname}-${pkgver}" QTDIR=/usr ./configure --prefix=/usr sed 's/netscape/mozilla/g' -i nsdejavu/Makefile - sed 's/swap/rofl_swap/g' -i src/qdjvuwidget.cpp make } package() { - cd "${srcdir}/djview-${pkgver}" + cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install-djview install-nsdejavu cd desktopfiles diff --git a/community/djview4/install b/community/djview4/install index f2bd04ceb..b0409600c 100644 --- a/community/djview4/install +++ b/community/djview4/install @@ -1,7 +1,6 @@ post_install() { - if type xdg-icon-resource &>/dev/null; then - xdg-icon-resource forceupdate --theme hicolor &> /dev/null - fi + xdg-icon-resource forceupdate --theme hicolor &> /dev/null || true + update-desktop-database -q || true } post_upgrade() { -- cgit v1.2.3-54-g00ecf