updated on Thu Jan 12 00:00:55 UTC 2012
[aur-mirror.git] / ocamlduce / PKGBUILD
blob49e9b8e57217aef6da8c2b72f6bbe549e63fec39
1 # Maintainer: spider-mario <spidermario@free.fr>
2 # Contributor: Guillem Rieu <guillemr@gmx.net>
3 pkgname=ocamlduce
4 pkgver=3.12.0
5 _name=cduce
6 _ver=0.5.3
7 pkgrel=3
8 pkgdesc="A modified version of OCaml with CDuce features."
9 arch=(i686 x86_64)
10 url="http://www.cduce.org/ocaml"
11 license=('custom:MIT')
12 groups=('devel')
13 depends=('ocaml' 'ocaml-findlib' 'ocaml-pcre' 'ulex' 'ocamlnet' 'ocaml-pxp')
14 options=('!strip' '!makeflags')
15 source=(http://www.cduce.org/download/$_name-$_ver.tar.gz
16         http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.0.tar.gz)
17 md5sums=('5506326db28419b3f578ff225417448f'
18          '3ba7cc65123c3579f14e7c726d3ee782')
20 build() {
21   cd "$srcdir/$_name-$_ver"
23   ./configure --prefix=/usr --mliface="$srcdir/ocaml-3.12.0"
24   make
27 package() {
28   cd "$srcdir/$_name-$_ver"
30   export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
32   mkdir -p "$pkgdir/$OCAMLFIND_DESTDIR"
34   make BINDIR="$pkgdir/usr/bin" MANDIR="$pkgdir/usr/share/man" DOCDIR="$pkgdir/usr/share/doc/ocamlduce" install
36   mkdir -p "$pkgdir/usr/share/licenses/ocamlduce"
37   install LICENSE "$pkgdir/usr/share/licenses/ocamlduce/"
40 # vim:set ts=2 sw=2 et: