diff options
author | Leonard de Ruijter | 2015-06-02 19:02:12 +0200 |
---|---|---|
committer | Leonard de Ruijter | 2015-06-09 08:40:52 +0200 |
commit | 7c914f6ff5d1bbfdd591d5369b1f7ba3036f1706 (patch) | |
tree | d9968b753c824c0d6daa0decb11a45471b9fd563 | |
download | aur-7c914f6ff5d1bbfdd591d5369b1f7ba3036f1706.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b07927c54685 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = ocaml-yojson + pkgdesc = An optimized parsing and printing library for JSON + pkgver = 1.1.8 + pkgrel = 2 + url = http://mjambon.com/yojson.html + arch = i686 + arch = x86_64 + license = BSD + makedepends = ocaml-biniou + makedepends = ocaml-findlib + makedepends = cppo + depends = ocaml-easy-format + options = !makeflags + source = http://mjambon.com/releases/yojson/yojson-1.1.8.tar.gz + md5sums = e3c53004f74410c3835d851b02c1bf21 + +pkgname = ocaml-yojson + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..07ce2ae4cc2c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Leonard de Ruijter <leonard@aur.archlinux.org> +# Contributor: Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor: Sergei Lebedev <superbobry@gmail.com> +# Contributor: Justin Davis <jrcd 83 at gmail> + +pkgname=ocaml-yojson +_oname=yojson +pkgver=1.1.8 +pkgrel=2 +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") +md5sums=('e3c53004f74410c3835d851b02c1bf21') +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/* +} |