summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonard de Ruijter2015-06-02 19:01:57 +0200
committerLeonard de Ruijter2015-06-09 08:47:13 +0200
commitcd736a860178b9e1adacd5273094e33554421a9b (patch)
tree57393ec977b5789a599a70526a55258a9ebc574f
downloadaur-cd736a860178b9e1adacd5273094e33554421a9b.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD30
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d3791c17b00
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ocaml-biniou
+ pkgdesc = A binary data serialization format inspired by JSON
+ pkgver = 1.0.9
+ pkgrel = 1
+ url = http://mjambon.com/biniou.html
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = ocaml-easy-format
+ makedepends = ocaml-findlib
+ depends = glibc
+ options = !strip
+ options = !makeflags
+ options = staticlibs
+ source = http://mjambon.com/releases/biniou/biniou-1.0.9.tar.gz
+ md5sums = 2f9f355281817912ac04c589eb463ef2
+
+pkgname = ocaml-biniou
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..407799858de
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Leonard de Ruijter <leonard@aur.archlinux.org>
+# Contributor: Serge Zirukin <ftrvxmtrx@gmail.com>
+# Contributor: Sergei Lebedev <superbobry@gmail.com>
+# Packager: Justin Davis <jrcd 83 at gmail>
+
+pkgname=ocaml-biniou
+_oname=biniou
+pkgver=1.0.9
+pkgrel=1
+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")
+md5sums=('2f9f355281817912ac04c589eb463ef2')
+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/*
+}