summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/ocaml-xmlm/PKGBUILD34
1 files changed, 19 insertions, 15 deletions
diff --git a/pcr/ocaml-xmlm/PKGBUILD b/pcr/ocaml-xmlm/PKGBUILD
index 6feeb0a81..efed83ca1 100644
--- a/pcr/ocaml-xmlm/PKGBUILD
+++ b/pcr/ocaml-xmlm/PKGBUILD
@@ -1,31 +1,35 @@
+# Contributor (Arch) : Jakob Gahde <j5lx@fmail.co.uk>
+# Contributor (Arch) : Leonard de Ruijter <leonard@aur.archlinux.org>
# Contributor (Arch) : charlesthehawk -- yahoo -- com
# Contributor (Arch) : Gregory BELLIER <gregory.bellier -- gmail -- com>
# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
-pkgname=ocaml-xmlm
-pkgver=1.1.1
+_pkgname=xmlm
+pkgname=ocaml-${_pkgname}
+pkgver=1.2.0
pkgrel=1
pkgdesc="OCaml xml manipulation module"
-arch=('i686' 'x86_64' 'mips64el')
+arch=('i686' 'x86_64')
url="http://erratique.ch/software/xmlm/"
-license=('BSD')
-makedepends=('ocaml ocaml-findlib')
-options=('!strip')
-install=
-source=(http://erratique.ch/software/xmlm/releases/xmlm-$pkgver.tbz)
+license=('BSD3')
+depends=('ocaml')
+makedepends=('opam' 'ocaml-findlib')
+options=('!strip' 'staticlibs')
+source=(http://erratique.ch/software/${_pkgname}/releases/${_pkgname}-${pkgver}.tbz)
+md5sums=('7e6d3363c2395d84274f1b480e4b6003')
build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
- cd "$srcdir/xmlm-$pkgver"
- ocaml setup.ml -configure --prefix ${pkgdir}/usr
- ocaml setup.ml -build
+ pkg/build true
}
package() {
- cd "${srcdir}/xmlm-${pkgver}"
- mkdir -p ${pkgdir}$(ocamlfind printconf destdir)
- env OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir) \
- ocaml setup.ml -install
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ opam-installer --prefix=$pkgdir/usr \
+ --libdir=$pkgdir$(ocamlc -where) \
+ --docdir=$pkgdir/usr/share/doc
}
# vim:set ts=2 sw=2 et: