summaryrefslogtreecommitdiff
path: root/community/djview4/PKGBUILD
blob: acccf6688f232f424e2e43ca93520ffcdcd038e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $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>
# Contributor: Daniel J Griffiths
# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=djview4
pkgver=4.8
pkgrel=1
pkgdesc='Portable DjVu viewer and browser plugin'
url='http://djvu.sourceforge.net/djview4.html'
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
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
	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
}