blob: c68c35de232a026dda955ad2ac5b8a256438ea6e (
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
|
# Maintainer: Daniel Peukert <daniel@peukert.cc>
_projectname='uring'
pkgname="ocaml-$_projectname"
pkgver='0.9'
pkgrel='1'
pkgdesc='Bindings to io_uring for OCaml'
arch=('x86_64' 'aarch64')
url="https://github.com/ocaml-multicore/$pkgname"
license=('ISC AND (LGPL-2.1-only OR MIT) AND (GPL-2.0-only WITH Linux-syscall-note OR MIT)')
depends=('dune>=3.0.0' 'ocaml>=4.12.0' 'ocaml-cstruct>=6.0.1' 'ocaml-fmt>=0.8.10' 'ocaml-optint>=0.1.0')
makedepends=('linux-api-headers')
checkdepends=('ocaml-cmdliner>=1.1.0' 'ocaml-logs>=0.5.0' 'ocaml-lwt>=5.0.0' 'ocaml-mdx>=2.1.0')
options=('!strip')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
b2sums=('5f1cdda606b60947ec8892b3bf46e47a3393714cd8a785cba334955f6c9e1ab4219f21e972c9bc8f3595e167f58e56458b82612e88c27f9c2f3c3f97f973ba19')
_sourcedirectory="$pkgname-$pkgver"
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/ocaml' --mandir '/usr/share/man' --release --verbose
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
ln -sf "/usr/share/doc/ocaml/$_projectname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-uring"
install -Dm644 "vendor/lib${_projectname}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-liburing"
install -Dm644 "vendor/lib${_projectname}/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING-liburing"
install -Dm644 "vendor/lib${_projectname}/COPYING.GPL" "$pkgdir/usr/share/licenses/$pkgname/COPYING.GPL-liburing"
}
|