summaryrefslogtreecommitdiff
path: root/pcr/ocaml-yojson/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-06 13:36:45 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-06 13:36:45 -0300
commitd1e161df4f6111d527c2570958ebaf637411e3e2 (patch)
tree4231f47e1699769d42f49cccde20687be979e89a /pcr/ocaml-yojson/PKGBUILD
parent84b75f29126e52357bbdd40860269d9197fd68fd (diff)
parenta93d4a7da5c55af8f8669fdb63194c0680e0f748 (diff)
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/ocaml-yojson/PKGBUILD')
-rw-r--r--pcr/ocaml-yojson/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
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 <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-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/*
+}