summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ5lx2015-07-03 17:41:38 +0200
committerJ5lx2015-07-03 17:41:38 +0200
commitb4e3914881239da76fde9355f2d84a45a6ef3cf1 (patch)
treee60af0249a2fdfd399eaabd7bd9033d88dd6c44d
downloadaur-b4e3914881239da76fde9355f2d84a45a6ef3cf1.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD31
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e29e015a719
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ocaml-comparelib
+ pkgdesc = OCaml syntax extension for deriving "compare" functions automatically
+ pkgver = 109.60.00
+ pkgrel = 1
+ url = https://github.com/janestreet/comparelib
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = ocaml-findlib
+ depends = ocaml
+ depends = camlp4
+ depends = ocaml-type_conv
+ options = !strip
+ source = https://ocaml.janestreet.com/ocaml-core/109.60.00/individual/comparelib-109.60.00.tar.gz
+ md5sums = ac3c1279f373304fc661e13affe88cc7
+
+pkgname = ocaml-comparelib
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3ae124e8a30
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
+
+pkgname=ocaml-comparelib
+pkgver=109.60.00
+pkgrel=1
+license=('Apache')
+arch=('i686' 'x86_64')
+pkgdesc="OCaml syntax extension for deriving \"compare\" functions automatically"
+url="https://github.com/janestreet/comparelib"
+depends=('ocaml' 'camlp4' 'ocaml-type_conv')
+makedepends=('ocaml-findlib')
+source=("https://ocaml.janestreet.com/ocaml-core/$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+").00/individual/${pkgname#ocaml-}-${pkgver}.tar.gz")
+options=('!strip')
+md5sums=('ac3c1279f373304fc661e13affe88cc7')
+
+build() {
+ cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
+
+ OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
+ mkdir -p "$OCAMLFIND_DESTDIR"
+ DESTDIR="${pkgdir}" \
+ OCAMLFIND_DESTDIR="$OCAMLFIND_DESTDIR" \
+ make install
+}