diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d3791c17b002 --- /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 000000000000..407799858de7 --- /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/* +} |