# $Id: PKGBUILD 166638 2012-09-14 01:48:24Z bisson $ # Maintainer: Gaetan Bisson # Maintainer: Jan de Groot # Contributor: mgushee pkgname=djvulibre pkgver=3.5.25.3 _major=3.5.25 pkgrel=1 pkgdesc="Suite to create, manipulate and view DjVu ('déjà vu') documents" url='http://djvu.sourceforge.net/' arch=('i686' 'x86_64') license=('GPL2') options=('!libtool') makedepends=('librsvg') depends=('libtiff' 'hicolor-icon-theme') source=("http://downloads.sourceforge.net/project/djvu/DjVuLibre/${_major}/djvulibre-${pkgver}.tar.gz") sha1sums=('ad35056aabb1950f385360ff59520a82a6f779ec') conflicts=('libdjvu') provides=("libdjvu=${pkgver}") replaces=('libdjvu') install=install build() { cd "${srcdir}/${pkgname}-${_major}" ./configure --prefix=/usr --disable-desktopfiles make } package() { cd "${srcdir}/${pkgname}-${_major}" make DESTDIR="${pkgdir}" install for sz in 22 32 48 64; do install -Dm644 desktopfiles/prebuilt-hi${sz}-djvu.png "${pkgdir}/usr/share/icons/hicolor/${sz}x${sz}/mimetypes/image-vnd.djvu.mime.png" done }