From 1b9c8954e492b233f0127f40d7f8b33ed78697a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20DESBRI=C3=88RES?= Date: Thu, 5 Jun 2014 20:48:55 +0200 Subject: ocaml-yojson --- pcr/ocaml-yojson/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pcr/ocaml-yojson/PKGBUILD (limited to 'pcr/ocaml-yojson') diff --git a/pcr/ocaml-yojson/PKGBUILD b/pcr/ocaml-yojson/PKGBUILD new file mode 100644 index 000000000..2e5c9d2bb --- /dev/null +++ b/pcr/ocaml-yojson/PKGBUILD @@ -0,0 +1,32 @@ +# Contributor (Arch) : Leonard de Ruijter +# Contributor (Arch) : Serge Zirukin +# Contributor (Arch) : Sergei Lebedev +# Contributor (Arch) : Justin Davis +# Maintainer (Parabola) : Aurélien DESBRIÈRES + +pkgname=ocaml-yojson +_oname=yojson +pkgver=1.1.8 +pkgrel=1 +pkgdesc='An optimized parsing and printing library for JSON' +arch=('i686' 'x86_64') +options=('!strip' 'staticlibs') +license=('BSD') +depends=('ocaml-easy-format') +makedepends=('ocaml-biniou' 'ocaml-findlib' 'cppo') +url='http://mjambon.com/yojson.html' +source=("http://mjambon.com/releases/${_oname}/${_oname}-${pkgver}.tar.gz") +options=(!makeflags) + +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/* +} -- cgit v1.2.3-2-g168b