blob: ff792e91c0d9881f069458fc04b12f1f7d0984d6 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_luaversions="5.1 5.2"
pkgname=lua-cqueues
pkgver=20140729
pkgrel=0
pkgdesc="Lua event loop using coroutines"
url="http://25thandclement.com/~william/projects/cqueues.html"
arch="all"
license="MIT"
depends=""
depends_dev=""
subpackages=""
makedepends="$depends_dev openssl-dev m4"
install=""
source="http://25thandclement.com/~william/projects/releases/cqueues-$pkgver.tgz"
for _i in $_luaversions; do
makedepends="$makedepends lua${_i}-dev"
subpackages="$subpackages lua${_i}-cqueues:_split_${_i/./}"
depends="$depends lua${_i}-cqueues"
done
_builddir="$srcdir"/cqueues-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make prefix=/usr || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" prefix=/usr install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
_split() {
local d= _ver=$1
pkgdesc="$pkgdesc - for Lua $_ver"
replaces="$pkgname"
depends=
for d in usr/lib/lua usr/share/lua; do
if [ -d "$pkgdir"/$d/$_ver ]; then
mkdir -p "$subpkgdir"/$d
mv "$pkgdir"/$d/$_ver "$subpkgdir"/$d/ || return 1
fi
done
}
for _i in $_luaversions; do
eval "_split_${_i/./}() { _split $_i; }"
done
md5sums="4dae243ba57cbb79628d1c0ff6156635 cqueues-20140729.tgz"
sha256sums="9b21bdc315b95d2b84aa93bbb296a969753400c44deeb2db47abe930359b27c9 cqueues-20140729.tgz"
sha512sums="7a44c5f6eba59e1336096fbf9970c6b0d527abab1a39ede059507c2c65e64a74722d3cb6bca3dc9cce02e7554f5da7d6c06cdf06833b32eca195714fef076b03 cqueues-20140729.tgz"
|