summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fdf598b0c8e3a8dcad7ead857be51706f7eb819 (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
# Contributor: shade
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=bibtex2html
pkgver=1.99.413
pkgrel=1
pkgdesc="Collection of tools for producing HTML documents from bibtex-bibliographies"
url="http://www.lri.fr/~filliatr/bibtex2html/"
license=('GPL2')
arch=('i686' 'x86_64')
depends=('perl')
makedepends=('ocaml' 'git' 'hevea' 'texlive-latexextra' 'texlive-bibtexextra')
source=(git+https://github.com/backtracking/bibtex2html.git#commit=8f25afb95a839c9f9522a34013d5c905af14378b)
md5sums=('SKIP')

build() {
  cd $pkgname
  autoreconf
  ./configure --prefix=/usr
  sed -i 's+-lstr+/usr/lib/ocaml/libcamlstr.a+' Makefile
  make 
  # to get cross references right
  hevea manual.tex
  pdflatex manual.tex
}
package() {
  cd $pkgname
  make prefix="$pkgdir"/usr install 
  install -Dm644 manual.pdf "$pkgdir"/usr/share/doc/$pkgname/$pkgname.pdf
  install -Dm644 manual.html "$pkgdir"/usr/share/doc/$pkgname/$pkgname.html
}