summaryrefslogtreecommitdiff
path: root/pcr/ocaml-ounit/PKGBUILD
blob: da4ed250d5acc7b76acba9f2aa496151d84fea61 (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
33
34
35
36
# Contributor (Arch)     : Marek Kubica <marek@xivilization.net>
# Contributor (Arch)     : Serge Zirukin <ftrvxmtrx@gmail.com>
# Contributor (Arch)     : Sergei Lebedev <superbobry@gmail.com>
# Contributor (Arch)     : Thomas S Hatch <thatch45 at gmail dot com>
# Contributor (Arch)     : Sebastian Wiesner <lunaryorn googlemail com>
# Contributor (Arch)     : Benjamin Andresen <benny(at)klapmuetz(dot)org>
# Contributor (Arch)     : Sylvester Johansson <syljo361(at)gmail(dot)org>
# Maintainer  (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>

pkgname=ocaml-ounit
_pkgname=ounit
pkgver=2.0.0
pkgrel=1
arch=('i686' 'x86_64')
license=('MIT')
pkgdesc="Unit testing framework for OCaml"
url="http://ounit.forge.ocamlcore.org"
depends=('ocaml')
makedepends=('ocaml-findlib')
options=('!strip')
source=("http://forge.ocamlcore.org/frs/download.php/1258/$_pkgname-$pkgver.tar.gz")

build() {
  cd "$srcdir/$_pkgname-$pkgver"

  ./configure --disable-debug --prefix /usr --destdir "$pkgdir"
  make all
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
  install -dm 755 "$OCAMLFIND_DESTDIR"
  make install
  install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}