blob: 1ac2c74459419f17a2545dc6e1010391d24dcde6 (
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
|
# Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
# Contributor: Benjamin Andresen <benny(at)klapmuetz(dot)org>
# Sylvester Johansson <syljo361(at)gmail(dot)org>
pkgname=ocaml-ounit
pkgver=1.1.0
pkgrel=4
arch=('i686' 'x86_64')
license=('MIT')
pkgdesc="Unit testing framework for OCaml"
url="http://ounit.forge.ocamlcore.org/index.php"
depends=('ocaml')
makedepends=('ocaml-findlib')
options=('!strip')
source=("https://forge.ocamlcore.org/frs/download.php/495/ounit-${pkgver}.tar.gz")
md5sums=('bf82bd7f8853cd9a1aff7be716192643')
_OCAMLFIND_DESTDIR="${pkgdir}/usr/lib/ocaml"
build() {
cd "${srcdir}/ounit-${pkgver}"
ocaml setup.ml -configure --destdir "${pkgdir}"
ocaml setup.ml -build
}
package() {
cd "${srcdir}/ounit-${pkgver}"
mkdir -p $_OCAMLFIND_DESTDIR
env OCAMLFIND_DESTDIR=$_OCAMLFIND_DESTDIR \
ocaml setup.ml -install
install -Dm 644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
}
|