summaryrefslogtreecommitdiff
path: root/community/htmldoc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/htmldoc/PKGBUILD')
-rw-r--r--community/htmldoc/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/htmldoc/PKGBUILD b/community/htmldoc/PKGBUILD
new file mode 100644
index 000000000..47f82367b
--- /dev/null
+++ b/community/htmldoc/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 15782 2010-04-15 20:40:51Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: tobias <tobias@archlinux.org>
+# Contributor: Simon Rutishauser <simon.rutishauser@gmx.ch>
+
+pkgname=htmldoc
+pkgver=1.8.27
+pkgrel=5
+pkgdesc="Produce PDF or Postscript from HTML documents including TOCs and Indices"
+arch=(i686 x86_64)
+url="http://www.htmldoc.org"
+license=('GPL')
+depends=('libjpeg' 'libpng' 'openssl' 'fltk' 'gcc' 'libxft' 'libxpm')
+source=(ftp://ftp.easysw.com/pub/${pkgname}/${pkgver}/${pkgname}-$pkgver-source.tar.bz2)
+md5sums=('35589e7b8fe9c54e11be87cd5aec4dcc')
+
+build() {
+ cd ${startdir}/src/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --mandir=${pkgdir}/usr/share/man
+ sed -i 's|^bindir.*$|bindir = ${prefix}/bin|' Makedefs
+ make || return 1
+ make prefix=${startdir}/pkg/usr install
+ # fix freedesktop stuff
+ install -Dm 644 desktop/htmldoc-128.png \
+ ${startdir}/pkg/usr/share/pixmaps/htmldoc.png
+ echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
+ sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
+ install -Dm 644 desktop/htmldoc.desktop \
+ ${startdir}/pkg/usr/share/applications/htmldoc.desktop
+}