blob: 74ab7b66e6fef79dc1e3e34997e3ea3395e42939 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
}
|