summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3dda63f2c6c625a1a4a7b0a1b0a7b3962aaa0119 (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
# Maintainer: Daniel Peukert <daniel@peukert.cc>
_projectname='monolith'
pkgname="ocaml-$_projectname"
pkgver='20241126'
pkgrel='1'
pkgdesc='A framework for strong random testing of OCaml libraries'
arch=('x86_64' 'aarch64')
url="https://gitlab.inria.fr/fpottier/$_projectname"
license=('LGPL-3.0-or-later')
depends=('ocaml>=4.12.0' 'ocaml-afl-persistent>=1.3' 'ocaml-pprint>=20200410')
makedepends=('dune>=3.11.0')
options=('!strip')
source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgver/$_projectname-$pkgver.tar.gz")
b2sums=('ed5868b2636b67d0170b03ef55ce2fa410985a8369e6da469cdebe17b18f59e805e1d181eddb9b513b4bd945d16618c7c0f7ee793f4efd024f67a2e450a6b1bc')

_sourcedirectory="$_projectname-$pkgver"

build() {
	cd "$srcdir/$_sourcedirectory/"
	dune build --release --verbose
}

# No tests available

package() {
	cd "$srcdir/$_sourcedirectory/"
	DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir '/usr/lib/ocaml' --docdir '/usr/share/doc/ocaml' --mandir '/usr/share/man' --release --verbose

	install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
	ln -sf "/usr/share/doc/ocaml/$_projectname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LGPL-3.0-or-later"
}