1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="Converts pdf files to html files."
8 url="ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/pdf2html/pdf2html-1.4/README"
10 depends=('ghostscript' 'imagemagick' 'libpng')
12 source=(ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/$pkgname/$pkgname-$pkgver.tgz \
16 md5sums=('cefb8fac9366cc7f793740e9d397af1a'
17 'f68531d64358cc7f23282792510199e5'
18 '017aa3a4d4ce042f519ca9863994d285')
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
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