summaryrefslogtreecommitdiff
path: root/pcr/ocaml-biniou/PKGBUILD
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:44:53 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:44:53 +0200
commitf53c88cb355568d7346a1b3b898db03b2a2f56f2 (patch)
treea7042e4d50af8619e8d2db2bbb135f10516abecc /pcr/ocaml-biniou/PKGBUILD
parentf236bcf70efa484844c5d9e346b81caef8b24001 (diff)
ocaml-biniou
Diffstat (limited to 'pcr/ocaml-biniou/PKGBUILD')
-rw-r--r--pcr/ocaml-biniou/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/ocaml-biniou/PKGBUILD b/pcr/ocaml-biniou/PKGBUILD
new file mode 100644
index 000000000..c5b6b74dc
--- /dev/null
+++ b/pcr/ocaml-biniou/PKGBUILD
@@ -0,0 +1,31 @@
+# Contributor (Arch) : Leonard de Ruijter <leonard@aur.archlinux.org>
+# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com>
+# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com>
+# Contributor (Arch) : Justin Davis <jrcd 83 at gmail>
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+pkgname=ocaml-biniou
+_oname=biniou
+pkgver=1.0.8
+pkgrel=3
+pkgdesc='A binary data serialization format inspired by JSON'
+arch=('i686' 'x86_64')
+options=('!strip' '!makeflags' 'staticlibs')
+license=('BSD')
+depends=('glibc')
+makedepends=('ocaml-easy-format' 'ocaml-findlib')
+url='http://mjambon.com/biniou.html'
+source=("http://mjambon.com/releases/${_oname}/${_oname}-${pkgver}.tar.gz")
+
+build() {
+ cd $srcdir/$_oname-$pkgver
+ make && make doc
+}
+
+package() {
+ cd $srcdir/$_oname-$pkgver
+ mkdir -p $pkgdir/usr/bin $pkgdir$(ocamlfind printconf destdir)
+ make OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir) install BINDIR="${pkgdir}/usr/bin"
+ install -dm755 "${pkgdir}/usr/share/doc/$pkgname"
+ install -t "${pkgdir}/usr/share/doc/$pkgname" doc/*
+}