diff options
author | root <root@rshg054.dnsready.net> | 2011-08-30 23:14:43 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-30 23:14:43 +0000 |
commit | b82f11fd76e83d60504649838e60a235b394160f (patch) | |
tree | 4914b89dc1dbc3ea44ae87c567ac7e9fc821c529 /community/djview4 | |
parent | e13fbaf2cbb72b7e8c8278ea94b70dd4a8ce48b2 (diff) |
Tue Aug 30 23:14:43 UTC 2011
Diffstat (limited to 'community/djview4')
-rw-r--r-- | community/djview4/PKGBUILD | 17 | ||||
-rw-r--r-- | community/djview4/install | 4 |
2 files changed, 13 insertions, 8 deletions
diff --git a/community/djview4/PKGBUILD b/community/djview4/PKGBUILD index 94cf3dfec..3923d1b2d 100644 --- a/community/djview4/PKGBUILD +++ b/community/djview4/PKGBUILD @@ -1,3 +1,4 @@ +# $Id: PKGBUILD 54964 2011-08-29 08:34:07Z bisson $ # Contributor: Paulo Matias <matiasΘarchlinux-br·org> # Contributor: Leslie P. Polzer <polzerΘgnu·org> # Contributor: erm67 <erm67Θyahoo·it> @@ -5,15 +6,16 @@ # Maintainer: Gaetan Bisson <bisson@archlinux.org> pkgname=djview4 -pkgver=4.7 +pkgver=4.8 pkgrel=1 pkgdesc='Portable DjVu viewer and browser plugin' -arch=('i686' 'x86_64') 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=('6c0c9c285caaf6211454c36898801c2eda799c8b') +sha1sums=('266d207afb63a1ee63eed054190bf88888fda572') + install=install build() { @@ -27,8 +29,9 @@ 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 + 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 } diff --git a/community/djview4/install b/community/djview4/install index e70c054ec..f2bd04ceb 100644 --- a/community/djview4/install +++ b/community/djview4/install @@ -1,5 +1,7 @@ post_install() { - xdg-icon-resource forceupdate --theme hicolor &> /dev/null + if type xdg-icon-resource &>/dev/null; then + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + fi } post_upgrade() { |