blob: 1c02fac0ff20023f2913b381793eafc0efd4211d (
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: Thomas Letan <lthms@soap.coffee>
_projectname=poll
_authorgh=anuragsoni
pkgname=ocaml-$_projectname
pkgver=0.3.1
pkgrel=1
license=('MIT')
arch=('x86_64')
pkgdesc="Portable OCaml interface to macOS/Linux/Windows native IO event notification mechanisms"
url="https://github.com/$_authorgh/$_projectname"
depends=('ocaml' 'ocaml-kqueue' 'ocaml-ppx_optcomp')
makedepends=('dune')
source=(
"$pkgname-$pkgver.tbz::https://github.com/$_authorgh/$_projectname/releases/download/$pkgver/$_projectname-$pkgver.tbz"
)
options=('!strip')
sha512sums=(
"5c47ac2cb4fb52c116a190b323c4e537c8cc1d4d4689653fc1a863cfb19e215468c8c2d93180402fccf83a5e23def540f1f52f2975b7e391155afa593ae5e127"
)
build() {
cd "${srcdir}/$_projectname-${pkgver}"
# The "-p" flag is necessary for release builds, see the Dune manpage. Dune will complain if you forget some packages.
dune build -p $_projectname
}
package() {
cd "${srcdir}/$_projectname-${pkgver}"
DESTDIR="${pkgdir}" dune install $_projectname --prefix "/usr" --libdir "/usr/lib/ocaml" --docdir "/usr/share/doc"
}
|