# Description: Converts HTML into Adobe PDF
# URL:         http://michaelrsweet.github.io/htmldoc
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Packager:    James Mills, prologic at shortcircuit dot net dot au
# Depends on:

name=htmldoc
version=1.8.30
release=1
source=(https://github.com/michaelrsweet/htmldoc/releases/download/v1.8.30/${name}-${version}-source.tar.gz
        fix_random.diff)

build() {
  patch -i $SRC/fix_random.diff -p1

  ./configure --prefix=/usr --disable-gnutls

  make
  make  prefix=$PKG/usr \
    datadir=$PKG/usr/share \
    bindir=$PKG/usr/bin \
    mandir=$PKG/usr/man install

  rm -rf $PKG/usr/share/doc
}
