updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / ocaml-expect / PKGBUILD
blob3e9f72553c94297ca2dfdb4d213c90f61a6ff1e4
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
2 # Contributor: Magnus Therning <magnus@therning.org>
3 # Contributor: Thomas Pani <thomas.pani@gmail.com>
5 pkgname=ocaml-expect
6 pkgver=0.0.2
7 pkgrel=3
8 pkgdesc="This is a simple implementation of 'expect' to help building unitary testing of interactive program."
9 arch=('i686' 'x86_64')
10 url="http://forge.ocamlcore.org/projects/ocaml-expect/"
11 license=('LGPL')
12 depends=('ocaml' 'ocaml-pcre' 'ocaml-extlib')
13 makedepends=('ocaml-findlib')
14 changelog=$pkgname.changelog
15 source=(https://forge.ocamlcore.org/frs/download.php/475/ocaml-expect-${pkgver}.tar.gz)
16 sha256sums=('178659fe466b1d43c32b183aadfd107d2a310b4e5f5f59019f3114129cd2cd7f')
18 build() {
19     cd "$srcdir/$pkgname-$pkgver"
21     ocaml setup.ml -configure --prefix /usr --destdir ${pkgdir}
22     ocaml setup.ml -build
25 package() {
26     cd "$srcdir/$pkgname-$pkgver"
28     export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
30     mkdir -p $OCAMLFIND_DESTDIR
31     ocaml setup.ml -install