updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / ocaml-lambda-term / PKGBUILD
blob4776d4e7ef95fb0cc70a3e644d2a89e17022b3f3
1 # Maintainer: Taylor Venable <taylor@metasyntax.net>
3 srcname='lambda-term'
4 pkgname="ocaml-${srcname}"
5 pkgver=1.1
6 pkgrel=1
7 pkgdesc='A cross-platform library for manipulating the terminal'
8 arch=('i686' 'x86_64')
9 url='http://forge.ocamlcore.org/projects/lambda-term/'
10 license=('BSD')
11 depends=('ocaml' 'ocaml-lwt' 'ocaml-react' 'ocaml-zed')
12 makedepends=('ocaml-findlib')
13 source=('http://forge.ocamlcore.org/frs/download.php/673/lambda-term-1.1.tar.gz')
14 options=('!strip')
15 md5sums=('b79eab17f609db4fc07c21cbd1b0fe9e')
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