summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/ocaml-xmlm/PKGBUILD37
1 files changed, 19 insertions, 18 deletions
diff --git a/pcr/ocaml-xmlm/PKGBUILD b/pcr/ocaml-xmlm/PKGBUILD
index efed83ca1..f10414c57 100644
--- a/pcr/ocaml-xmlm/PKGBUILD
+++ b/pcr/ocaml-xmlm/PKGBUILD
@@ -1,36 +1,37 @@
-# 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 (AUR) : Jakob Gahde <j5lx@fmail.co.uk>
+# Contributor (AUR) : Leonard de Ruijter <leonard@aur.archlinux.org>
+# Contributor (AUR) : charlesthehawk -- yahoo -- com
+# Contributor (AUR) : Gregory BELLIER <gregory.bellier -- gmail -- com>
# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
_pkgname=xmlm
pkgname=ocaml-${_pkgname}
-pkgver=1.2.0
+pkgver=1.3.0
pkgrel=1
-pkgdesc="OCaml xml manipulation module"
-arch=('i686' 'x86_64')
+pkgdesc="An OCaml streaming codec to decode and encode the XML data format"
+arch=('i686' 'x86_64' 'armv7h')
url="http://erratique.ch/software/xmlm/"
-license=('BSD3')
+license=('ISC')
depends=('ocaml')
-makedepends=('opam' 'ocaml-findlib')
+makedepends=('ocamlbuild' 'ocaml-findlib' 'ocaml-topkg' 'opam')
options=('!strip' 'staticlibs')
-source=(http://erratique.ch/software/${_pkgname}/releases/${_pkgname}-${pkgver}.tbz)
-md5sums=('7e6d3363c2395d84274f1b480e4b6003')
+source=("http://erratique.ch/software/${_pkgname}/releases/${_pkgname}-${pkgver}.tbz")
+md5sums=('d63ce15d913975211196b5079e86a797')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
- pkg/build true
+ ocaml pkg/pkg.ml build
}
package() {
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:
+ opam-installer "--prefix=${pkgdir}/usr" \
+ "--libdir=${pkgdir}$(ocamlc -where)" \
+ "--docdir=${pkgdir}/usr/share/doc"
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+ mv "${pkgdir}/usr/share/doc/${_pkgname}/LICENSE.md" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+}