# $Id: PKGBUILD 215710 2014-06-30 10:28:02Z bisson $ # Maintainer: Gaetan Bisson # Maintainer: Jan de Groot # Contributor: mgushee pkgname=djvulibre pkgver=3.5.25.3 _major=3.5.25 pkgrel=2 pkgdesc="Suite to create, manipulate and view DjVu ('déjà vu') documents" url='http://djvu.sourceforge.net/' arch=('i686' 'x86_64') license=('GPL2') 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 }