diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-06 13:36:45 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-06 13:36:45 -0300 |
commit | d1e161df4f6111d527c2570958ebaf637411e3e2 (patch) | |
tree | 4231f47e1699769d42f49cccde20687be979e89a /pcr/ocaml-extlib | |
parent | 84b75f29126e52357bbdd40860269d9197fd68fd (diff) | |
parent | a93d4a7da5c55af8f8669fdb63194c0680e0f748 (diff) |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/ocaml-extlib')
-rw-r--r-- | pcr/ocaml-extlib/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/ocaml-extlib/PKGBUILD b/pcr/ocaml-extlib/PKGBUILD new file mode 100644 index 000000000..38193a1c7 --- /dev/null +++ b/pcr/ocaml-extlib/PKGBUILD @@ -0,0 +1,43 @@ +# Contributor (Arch) : Patryk Kowalczyk < patryk at kowalczyk dot ws> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-extlib +pkgver=1.5.4 +pkgrel=2 +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) + + +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 + + # Install additional files + sed -i 's/ocamlfind install extlib META/ocamlfind install extlib META *.cmo *.cmx *.ml/g' Makefile +} + +package () { + _DOCDIR="${pkgdir}/usr/share/doc/ocaml-extlib" + + cd ${srcdir}/extlib-${pkgver} + + export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" + mkdir -p "${OCAMLFIND_DESTDIR}" + make install + + # Install doc + mkdir -p $_DOCDIR + cp -r doc/* $_DOCDIR/ +} + |