updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / htmldoc-svn / PKGBUILD
bloba1baee5b89bacc51b865aa9c7856884d0a945709
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>
6 pkgname=htmldoc-svn
7 pkgver=1666
8 pkgrel=1
9 pkgdesc="Produce PDF or Postscript from HTML documents including TOCs and Indices"
10 arch=(i686 x86_64)
11 url="http://www.htmldoc.org"
12 license=('GPL')
13 depends=('libjpeg' 'libpng' 'openssl' 'fltk' 'gcc' 'libxft' 'libxpm')
14 source=()
15 md5sums=()
17 _svntrunk=http://svn.easysw.com/public/htmldoc/trunk/
18 _svnmod=htmldoc
20 build() {
21   cd "$srcdir"
23   if [ -d $_svnmod/.svn ]; then
24     (cd $_svnmod && svn up -r $pkgver)
25   else
26     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27   fi
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"
36   #
37   # BUILD
38   #
39   [ -x configure ] || autoconf
40   ./configure --prefix=/usr
41   make
44 package() {
45   cd "$srcdir/$_svnmod-build"
47   make install \
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 \
55         prefix=$pkgdir/usr \
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