summaryrefslogtreecommitdiff
path: root/pcr/ocaml-xmlm/PKGBUILD
blob: 2476a3e9b9505149def547533b8dcd3965301244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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
pkgrel=1
pkgdesc="OCaml xml manipulation module"
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)

build() {

  cd "$srcdir/xmlm-$pkgver"
  ocaml setup.ml -configure --prefix ${pkgdir}/usr
  ocaml setup.ml -build
}

package() {
  cd "${srcdir}/xmlm-${pkgver}"
  mkdir -p ${pkgdir}$(ocamlfind printconf destdir)
  env OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir) \
    ocaml setup.ml -install
}

# vim:set ts=2 sw=2 et: