summaryrefslogtreecommitdiff
path: root/community/hevea
diff options
context:
space:
mode:
Diffstat (limited to 'community/hevea')
-rw-r--r--community/hevea/PKGBUILD30
-rw-r--r--community/hevea/hevea.install13
2 files changed, 43 insertions, 0 deletions
diff --git a/community/hevea/PKGBUILD b/community/hevea/PKGBUILD
new file mode 100644
index 000000000..6a2b3397c
--- /dev/null
+++ b/community/hevea/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 83233 2013-01-28 14:16:05Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Brian Nguyen <bhnguyen@gmail.com>
+# Original Packager: Tom K <tomk@runbox.com>
+
+pkgname=hevea
+pkgver=2.02
+pkgrel=1
+pkgdesc="A quite complete and fast LATEX to HTML translator"
+arch=(i686 x86_64)
+depends=('ocaml')
+license=('GPL')
+url="http://pauillac.inria.fr/~maranget/hevea/"
+install=hevea.install
+source=(http://pauillac.inria.fr/~maranget/$pkgname/distri/$pkgname-$pkgver.tar.gz)
+md5sums=('b0331fdf123c21ce02f15c890d268306')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ sed -i 's:usr/local:usr:' Makefile
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ sed -i 's:/usr:$PREFIX:' config.sh
+ make install PREFIX=$pkgdir/usr
+ mkdir -p $pkgdir/usr/share/texmf/tex/latex
+ ln -s /usr/lib/hevea/hevea.sty $pkgdir/usr/share/texmf/tex/latex/hevea.sty
+}
diff --git a/community/hevea/hevea.install b/community/hevea/hevea.install
new file mode 100644
index 000000000..73059e5df
--- /dev/null
+++ b/community/hevea/hevea.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo "HEVEA is fully functional when other software are installed:"
+ echo "* A modern LaTeX installation including dvips."
+ echo "* The ghostscript PostScript interpreter."
+ echo "* The netpbm image processing package."
+ echo "However, these are optional and hevea runs without them."
+ texhash
+}
+
+post_upgrade() {
+ post_install $1
+}
+