updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / ocaml-utop / PKGBUILD
blob290ed4b76dd2e0bd8c479c9e23c6117019aae52a
1 # Maintainer: Taylor Venable <taylor@metasyntax.net>
3 srcname='utop'
4 pkgname="ocaml-${srcname}"
5 pkgver=1.1
6 pkgrel=3
7 pkgdesc='A toplevel for OCaml that supports completion, colors, and parenthesis matching'
8 arch=('i686' 'x86_64')
9 url='http://forge.ocamlcore.org/projects/utop/'
10 license=('BSD')
11 depends=('ocaml' 'ocaml-compiler-libs' 'ocaml-lwt' 'ocaml-lambda-term')
12 makedepends=('ocaml-findlib')
13 source=('https://forge.ocamlcore.org/frs/download.php/674/utop-1.1.tar.gz')
14 options=('!strip')
15 md5sums=('dc60c8449cb05eb1f85dd99222034979')
17 build() {
18     cd "$srcdir/${srcname}-${pkgver}"
19     ./configure --prefix /usr --destdir "$pkgdir"
21     env DESTDIR="$pkgdir" \
22         OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \
23         make
27 package() {
28     mkdir -p "$pkgdir/$(ocamlfind printconf destdir)"
29     mkdir -p "$pkgdir/$(ocamlfind printconf destdir)/stublibs"
30     cd "$srcdir/${srcname}-${pkgver}"
31     env DESTDIR="$pkgdir" \
32         OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \
33         make install
34     install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE