diff options
author | J5lx | 2015-07-03 16:35:16 +0200 |
---|---|---|
committer | J5lx | 2015-07-03 16:35:16 +0200 |
commit | 1175c597a29e3c782100ce1bfd5c6eeed0f950a1 (patch) | |
tree | ea185dc07e5eee3401facada555c098eedc144c9 /PKGBUILD | |
download | aur-1175c597a29e3c782100ce1bfd5c6eeed0f950a1.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..db18b4db227f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> + +pkgname=ocaml-textutils +pkgver=112.17.00 +pkgrel=1 +license=('Apache') +arch=('i686' 'x86_64') +pkgdesc="Text output utilities" +url="https://github.com/janestreet/textutils" +depends=('ocaml' 'camlp4' 'ocaml-core' 'ocaml-pa_ounit' 'ocaml-sexplib') +makedepends=('ocaml-findlib') +source=("https://ocaml.janestreet.com/ocaml-core/$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/${pkgname#ocaml-}-${pkgver}.tar.gz") +options=('!strip') +md5sums=('170dc582e4c6e80d4c9e8c7367adbfa2') + +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" + make install +} |