blob: 3878324aeaa7a845a924267daf7e8acdcf298687 (
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: kiasoc5 <kiasoc5 at disroot dot org>
_name=fibers
pkgname=guile-$_name
pkgver=1.3.1
pkgrel=1
_commit=e94ce968caf77c487d0ceda99c417498bab6bb5e
pkgdesc="Concurrent ML-like concurrency for Guile"
arch=(any)
license=(LGPL3+)
makedepends=(git)
depends=("guile>=2.1.7")
source=(git+https://github.com/wingo/${_name}.git#commit=${_commit})
url="https://github.com/wingo/fibers"
md5sums=('SKIP')
# shows warnings for .go files
options=(!strip)
build() {
cd "$srcdir/$_name"
autoreconf -vif
./configure --prefix=/usr
GUILE_AUTO_COMPILE=0 make
}
package() {
cd "$srcdir/$_name"
GUILE_AUTO_COMPILE=0 make install DESTDIR="$pkgdir"
}
check() {
cd "$srcdir/$_name"
# This test can take more than an hour on some systems.
sed -i -e "s/.*spawn-fiber loop-to-1e4.*//g" tests/basic.scm
# These tests can take more than an hour and/or segfault.
sed -i "s|tests/speedup.scm||g" Makefile
GUILE_AUTO_COMPILE=0 make check
}
|