updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / hyperlatex / PKGBUILD
blob109891afbae23c9f377f6756e109b837fc10f530
1 # Maintainer: rcy <young at math dot umass dot edu>
2 # Contributor: rcy <young at math dot umass dot edu>
4 pkgname=hyperlatex
5 pkgver=2.9a
6 pkgrel=1
7 pkgdesc="Hyperlatex - generate HTML from (modified) LaTeX source"
8 arch=('i686' 'x86_64')
9 url='http://sourceforge.net/projects/hyperlatex/'
10 license=('GPL')
11 depends=('texlive-core' 'emacs')
12 install=texlive.install
13 source=("http://downloads.sourceforge.net/hyperlatex/Hyperlatex-$pkgver.tar.gz")
14 md5sums=('71ce79adda7315a65c011929b4434659')
16 build() {
17    cd $srcdir/Hyperlatex-$pkgver
18    install -m755 -d $pkgdir/usr/share/texmf-dist/tex/latex/hyperlatex/
19    install -m644 etc/hyperlatex.sty \
20         $pkgdir/usr/share/texmf-dist/tex/latex/hyperlatex/ || return 1
22    mv hlx/contrib/longtable.hlx hlx/newlongtable.hlx
23    install -m755 -d $pkgdir/usr/share/texmf-dist/hyperlatex
24    install -m644 hlx/*.hlx \
25         hlx/contrib/*.hlx \
26         hlx/contrib/rhxhlx/*.hlx \
27         bin/normalize-eps.awk \
28         hlx/hyperlatex.el \
29         $pkgdir/usr/share/texmf-dist/hyperlatex || return 1
31    sed -i '/HYPERLATEX_SYS_DIR=/s#\".*\"#"/usr/share/texmf-dist/hyperlatex"#' bin/hyperlatex || return 1
32    install -m755 -d $pkgdir/usr/bin/
33    install -m755 bin/hyperlatex bin/ps2image $pkgdir/usr/bin/ || return 1
35    install -m755 -d $pkgdir/usr/share/texmf-dist/hyperlatex/doc
36    install -m644 doc/* \
37         $pkgdir/usr/share/texmf-dist/hyperlatex/doc || return 1
38    
39    install -m755 -d $pkgdir/usr/share/texmf-dist/hyperlatex/doc/rhxhlx/
40    install -m644 hlx/contrib/rhxhlx/*x hlx/contrib/rhxhlx/pics/* \
41         $pkgdir/usr/share/texmf-dist/hyperlatex/doc/rhxhlx || return 1
43    cd $pkgdir/usr/share/texmf-dist/hyperlatex
44    emacs -batch -q -no-site-file -l hyperlatex.el -f hyperlatex-compile