summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Gahde2018-06-27 21:38:42 +0200
committerJakob Gahde2018-06-27 21:38:42 +0200
commit103dd74257638014d6e7a0db41f9194781ff08bb (patch)
tree94b82c85657f350dcc244d15f5977f4d2e14db3b
downloadaur-103dd74257638014d6e7a0db41f9194781ff08bb.tar.gz
ocaml-sexplib0 0.11.0-1: New package
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD30
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3c2aa42ce73
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Wed Jun 27 19:38:24 UTC 2018
+pkgbase = ocaml-sexplib0
+ pkgdesc = Library containing the definition of S-expressions and some base converters
+ pkgver = 0.11.0
+ pkgrel = 1
+ url = https://github.com/janestreet/sexplib0
+ arch = x86_64
+ license = MIT
+ makedepends = dune
+ depends = ocaml
+ options = !strip
+ source = https://ocaml.janestreet.com/ocaml-core/v0.11/files/sexplib0-v0.11.0.tar.gz
+ md5sums = 1c14ba30b471e49f1b23fea5ff99ea6b
+
+pkgname = ocaml-sexplib0
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1222cf283cf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
+
+pkgname=ocaml-sexplib0
+pkgver=0.11.0
+pkgrel=1
+pkgdesc="Library containing the definition of S-expressions and some base converters"
+arch=('x86_64')
+url='https://github.com/janestreet/sexplib0'
+license=('MIT')
+depends=('ocaml')
+makedepends=('dune')
+options=('!strip')
+source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/sexplib0-v${pkgver}.tar.gz")
+md5sums=('1c14ba30b471e49f1b23fea5ff99ea6b')
+
+build() {
+ cd "${srcdir}/sexplib0-v${pkgver}"
+
+ jbuilder build
+}
+
+
+package() {
+ cd "${srcdir}/sexplib0-v${pkgver}"
+
+ mkdir -p "${pkgdir}$(ocamlfind printconf destdir)" "${pkgdir}/usr/share"
+ jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind printconf destdir)"
+ mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
+ install -Dm755 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}