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 | |
download | aur-1175c597a29e3c782100ce1bfd5c6eeed0f950a1.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7406d6d58a8c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = ocaml-textutils + pkgdesc = Text output utilities + pkgver = 112.17.00 + pkgrel = 1 + url = https://github.com/janestreet/textutils + arch = i686 + arch = x86_64 + license = Apache + makedepends = ocaml-findlib + depends = ocaml + depends = camlp4 + depends = ocaml-core + depends = ocaml-pa_ounit + depends = ocaml-sexplib + options = !strip + source = https://ocaml.janestreet.com/ocaml-core/112.17/files/textutils-112.17.00.tar.gz + md5sums = 170dc582e4c6e80d4c9e8c7367adbfa2 + +pkgname = ocaml-textutils + 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 +} |