From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/ocaml-extlib/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 community/ocaml-extlib/PKGBUILD (limited to 'community/ocaml-extlib') diff --git a/community/ocaml-extlib/PKGBUILD b/community/ocaml-extlib/PKGBUILD new file mode 100644 index 000000000..42af092f3 --- /dev/null +++ b/community/ocaml-extlib/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Thomas S Hatch +# Contributor: Massimiliano Brocchini + +pkgname=ocaml-extlib +pkgver=1.5.1 +pkgrel=4 +pkgdesc="Extends the OCaml standard library" +arch=('i686' 'x86_64') +url="http://code.google.com/p/ocaml-extlib/" +license=('LGPL') +depends=('ocaml') +makedepends=('ocaml-findlib') +source=(http://ocaml-extlib.googlecode.com/files/extlib-${pkgver}.tar.gz) +md5sums=('8dc2944cbf63141347956bd353893d75') + +_OCAMLFIND_DESTDIR="${pkgdir}/usr/lib/ocaml" +_DOCDIR="${pkgdir}/usr/share/doc/ocaml-extlib" + +build() { + cd ${srcdir}/extlib-${pkgver} + make all + make opt + sed -i 's/cp odoc_style.css/#cp odoc_style.css/g' Makefile + sed -i 's/ocamldoc -sort -html/ocamldoc -sort -keep-code -html -colorize-code/g' Makefile + make doc +} + +package () { + cd ${srcdir}/extlib-${pkgver} + mkdir -p $_OCAMLFIND_DESTDIR/extlib + mkdir -p $_DOCDIR + install -m 0644 *.{a,cmxa,cma,cmi,cmo,mli,cmx,ml} $_OCAMLFIND_DESTDIR/extlib + install -m 0644 META.txt $_OCAMLFIND_DESTDIR/extlib/META + cp -r doc/* $_DOCDIR/ +} -- cgit v1.2.3-54-g00ecf