diff options
author | root <root@rshg054.dnsready.net> | 2012-01-20 23:14:48 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-20 23:14:48 +0000 |
commit | a1922d0ec660fdc1892f2783515f781c090df0a9 (patch) | |
tree | 6d38a09231ff439c051261d41bfa066870e1fccb /community-staging/djview4 | |
parent | eefecc8813e0c062a2058b33209cb30830f824b6 (diff) |
Fri Jan 20 23:14:48 UTC 2012
Diffstat (limited to 'community-staging/djview4')
-rw-r--r-- | community-staging/djview4/PKGBUILD | 38 | ||||
-rw-r--r-- | community-staging/djview4/install | 13 |
2 files changed, 51 insertions, 0 deletions
diff --git a/community-staging/djview4/PKGBUILD b/community-staging/djview4/PKGBUILD new file mode 100644 index 000000000..a2600bec6 --- /dev/null +++ b/community-staging/djview4/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 62347 2012-01-19 14:18:32Z bisson $ +# 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@archlinux.org> + +pkgname=djview4 +pkgver=4.8 +pkgrel=2 +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') + +install=install + +build() { + cd "${srcdir}/djview-${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}" + 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 +} diff --git a/community-staging/djview4/install b/community-staging/djview4/install new file mode 100644 index 000000000..f2bd04ceb --- /dev/null +++ b/community-staging/djview4/install @@ -0,0 +1,13 @@ +post_install() { + if type xdg-icon-resource &>/dev/null; then + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |