1 # $Id: PKGBUILD 51081 2011-07-05 07:09:42Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Maintainer: tobias <tobias@archlinux.org>
4 # Contributor: Simon Rutishauser <simon.rutishauser@gmx.ch>
9 pkgdesc="Produce PDF or Postscript from HTML documents including TOCs and Indices"
11 url="http://www.htmldoc.org"
13 depends=('libjpeg' 'libpng' 'openssl' 'fltk' 'gcc' 'libxft' 'libxpm')
17 _svntrunk=http://svn.easysw.com/public/htmldoc/trunk/
23 if [ -d $_svnmod/.svn ]; then
24 (cd $_svnmod && svn up -r $pkgver)
26 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29 msg "SVN checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_svnmod-build"
33 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
34 cd "$srcdir/$_svnmod-build"
39 [ -x configure ] || autoconf
40 ./configure --prefix=/usr
45 cd "$srcdir/$_svnmod-build"
48 prefix=${pkgdir}/usr \
49 bindir=$pkgdir/usr/bin \
50 datadir=$pkgdir/usr/share \
51 datarootdir=$pkgdir/usr/share \
52 docdir=$pkgdir/usr/share/doc/htmldoc \
53 exec_prefix=$pkgdir/usr \
54 mandir=$pkgdir/usr/share/man \
56 sysconfdir=$pkgdir/etc
58 # fix freedesktop stuff
59 install -Dm 644 desktop/htmldoc-128.png \
60 ${pkgdir}/usr/share/pixmaps/htmldoc.png
61 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
62 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
63 install -Dm 644 desktop/htmldoc.desktop \
64 ${pkgdir}/usr/share/applications/htmldoc.desktop