blob: ea353627d8e3950dc065c6cc21b7ce0df60eddaa (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Daniel Peukert <daniel@peukert.cc>
_projectname='multicoretests'
pkgname="ocaml-$_projectname"
pkgver='0.7'
pkgrel='2'
pkgdesc='PBT testsuite and libraries for testing multicore OCaml'
arch=('x86_64' 'aarch64')
url="https://github.com/ocaml-multicore/$_projectname"
license=('BSD-2-Clause')
depends=('ocaml>=4.12.0' 'ocaml-qcheck>=0.23')
makedepends=('dune>=3.0.0')
options=('!strip')
source=(
"$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
'disable-dynlink-lin_tests_dsl-test.diff'
)
b2sums=('79eb19bd45f6e59f1ffd1a3dc3ec6d6cc2c6d1bf5ba1645a3f8948aae923c3a6998c138010caf8b1ef19add4b99720644a6635eeab8a511620a7bf7b934509b0'
'9800f0b1185610845557a8068d17589965839f8dba1fb19b0cbd5525aaef3b6d6c29631a6de81e5065b3289b3d89fddf73854182bb34faed0915e3ae17fbbc1c')
_sourcedirectory="$_projectname-$pkgver"
prepare() {
cd "$srcdir/$_sourcedirectory/"
# Disable dynlink/lin_tests_dsl.ml test, as it currently does not pass
patch --forward -p1 < "$srcdir/disable-dynlink-lin_tests_dsl-test.diff"
}
build() {
cd "$srcdir/$_sourcedirectory/"
dune build --release --verbose
}
check() {
cd "$srcdir/$_sourcedirectory/"
dune runtest --release --verbose
}
package() {
cd "$srcdir/$_sourcedirectory/"
DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir '/usr/lib/ocaml' --docdir '/usr/share/doc' --mandir '/usr/share/man' --release --verbose
for _folder in "$pkgdir/usr/share/doc/"*; do
mv "$_folder" "$pkgdir/usr/share/doc/ocaml-$(basename "$_folder")"
done
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
ln -sf "/usr/share/doc/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/BSD-2-Clause"
}
|