updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pdf2html / PKGBUILD
blob40db964e665090039829c83bb375542960d7805d
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 pkgname=pdf2html
4 pkgver=1.4
5 pkgrel=3
6 pkgdesc="Converts pdf files to html files."
7 arch=('i686' 'x86_64')
8 url="ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/pdf2html/pdf2html-1.4/README"
9 license=('GPL')
10 depends=('ghostscript' 'imagemagick' 'libpng')
11 makedepends=('patch')
12 source=(ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/$pkgname/$pkgname-$pkgver.tgz \
13         pbm2png.diff \
14         index.html.diff)
16 md5sums=('cefb8fac9366cc7f793740e9d397af1a'
17          'f68531d64358cc7f23282792510199e5'
18          '017aa3a4d4ce042f519ca9863994d285')
20 build() {
21   cd ${srcdir}/$pkgname-$pkgver
23   patch -Np0 -i ${srcdir}/pbm2png.diff || return 1
24   patch -Np0 -i ${srcdir}/index.html.diff || return 1
26   install -d ${pkgdir}/usr/share/$pkgname ${pkgdir}/usr/bin
28   make || return 1
29   install -m644 *.png index.html ${pkgdir}/usr/share/$pkgname
31   echo "cp /usr/share/pdf2html/*.png ." >> pdf2html
32   install -m755 pbm2png pbm2eps9 pdf2html ps2eps9 ${pkgdir}/usr/bin