diff options
author | J5lx | 2015-06-09 17:08:42 +0200 |
---|---|---|
committer | J5lx | 2015-06-09 17:08:42 +0200 |
commit | d6f1ace1bbc1f6039a160c7b342c13b248033a82 (patch) | |
tree | ecca22933234b4855a262078b6ef73b8de6d56aa /PKGBUILD | |
download | aur-d6f1ace1bbc1f6039a160c7b342c13b248033a82.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c96173f5d3cd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> + +pkgname=ocaml-core +pkgver=112.24.01 +pkgrel=1 +license=('Apache') +arch=('i686' 'x86_64') +pkgdesc="Industrial strength alternative to OCaml's standard library" +url="https://github.com/janestreet/core" +depends=('ocaml' 'ocaml-bin_prot' 'camlp4' 'ocaml-comparelib' 'ocaml-core_kernel' 'ocaml-custom_printf' 'ocaml-enumerate' 'ocaml-fieldslib' 'ocaml-herelib' 'ocaml-pa_bench' 'ocaml-pa_ounit' 'ocaml-pa_test' 'ocaml-pipebang' 'ocaml-sexplib' 'ocaml-variantslib') +makedepends=('ocaml-findlib') +source=("https://ocaml.janestreet.com/ocaml-core/$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/${pkgname#ocaml-}-$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")$([[ $(echo ${pkgver} | grep -Po "[0-9]+$") != "00" ]] && echo ".$(echo ${pkgver} | grep -Po "[0-9]+$")").tar.gz") +options=('!strip') +md5sums=('4c4bc769e1dc8249b973f692994c5406') + +build() { + cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" + + ./configure --prefix /usr + make +} + +package() { + cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" + + export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" + mkdir -p "${OCAMLFIND_DESTDIR}/stublibs" + make install +} |