blob: 5c64a7018eb82a4fefd25738bf7433056e4a2377 (
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
|
# Maintainer (AUR): Jakob Gahde <j5lx@fmail.co.uk>
# Contributor (AUR): Serge Zirukin <ftrvxmtrx@gmail.com>
# Contributor (AUR): Sergei Lebedev <superbobry@gmail.com
# Contributor (AUR): serp <serp256 at gmail dot com>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# parabola changes and rationale:
# - renamed tarball to avoid collisions
# - updated package to 2.7.1
# - added missing makedepends: cppo
_pkgname=lwt
pkgname=ocaml-${_pkgname}
pkgver=4.1.0
pkgrel=3
pkgdesc="A library for cooperative threads in OCaml"
arch=('i686' 'x86_64')
arch+=('armv7h')
url="http://ocsigen.org/lwt/"
license=('MIT')
depends=('libev' 'ocaml-migrate-parsetree' 'ocaml-ppx_tools_versioned' 'ocaml-react' 'ocaml-result')
makedepends=('ocaml-findlib' 'dune' 'cppo')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ocsigen/${_pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('974e941f0e9c63200935ebd5e6bd4be5acde3ad1fd067fb7ebe54db952001056')
options=('!strip' '!makeflags' 'staticlibs')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
ocaml src/util/configure.ml -use-libev true
jbuilder build
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
install -dm755 "${pkgdir}$(ocamlfind printconf destdir)" "${pkgdir}/usr/share"
jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind printconf destdir)"
mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
install -Dm644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
}
|