summaryrefslogtreecommitdiff
path: root/extra/latex2html
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/latex2html
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/latex2html')
-rw-r--r--extra/latex2html/PKGBUILD45
-rw-r--r--extra/latex2html/latex2html.install15
2 files changed, 60 insertions, 0 deletions
diff --git a/extra/latex2html/PKGBUILD b/extra/latex2html/PKGBUILD
new file mode 100644
index 000000000..74ab7b66e
--- /dev/null
+++ b/extra/latex2html/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 20302 2008-12-02 10:44:29Z ronald $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Jochem Kossen <j.kossen@home.nl>
+# Contributor: Jason Chu <jason.archlinux.org>
+
+pkgname=latex2html
+pkgver=2008
+pkgrel=1
+pkgdesc="latex2html is a convertor written in Perl that converts LaTeX documents to HTML."
+arch=('i686' 'x86_64')
+url="http://saftsack.fs.uni-bayreuth.de/~latex2ht/"
+depends=('perl' 'ghostscript' 'texlive-core' 'libpng' 'giflib' 'netpbm')
+install=$pkgname.install
+license=('GPL2')
+source=(http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/$pkgname-$pkgver.tar.gz)
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=$startdir/pkg/usr \
+ --shlibdir=$startdir/pkg/usr/lib/$pkgname \
+ --with-texpath=$startdir/pkg/usr/share/texmf/tex/latex/html \
+ --enable-wrapper \
+ --enable-gif \
+ --enable-png || return 1
+
+ make || return 1
+ make install || return 1
+
+ find $startdir/pkg/usr -type f -print | while read filename; do
+ if [ ! -z '`grep "$startdir" "$filename"`' ]; then
+ mv $filename $filename.mkpkg
+ sed -e "s#$pkgdir##g" -e "s#$srcdir##g" < $filename.mkpkg > $filename
+ rm $filename.mkpkg
+ fi
+ done
+
+ # move files to FHS location
+ mv $startdir/pkg/usr/cfgcache.pm $startdir/pkg/usr/l2hconf.pm $startdir/pkg/usr/lib/$pkgname/
+
+ # set correct permission on executables
+ chmod 755 $pkgdir/usr/bin/pstoimg \
+ $pkgdir/usr/bin/$pkgname \
+ $pkgdir/usr/bin/texexpand
+
+}
diff --git a/extra/latex2html/latex2html.install b/extra/latex2html/latex2html.install
new file mode 100644
index 000000000..afbeeb50c
--- /dev/null
+++ b/extra/latex2html/latex2html.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo ">>> texlive: updating the filename database..."
+ texconfig-sys rehash
+}
+
+post_upgrade() {
+ echo ">>> texlive: updating the filename database..."
+ texconfig-sys rehash
+}
+
+post_remove() {
+ echo ">>> texlive: updating the filename database..."
+ texconfig-sys rehash
+}
+