blob: 5fc51a4c3481d6f2ac0bbbb04c54aa0369ce844a (
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: Stephen Smith <stephen304@gmail.com>
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_rockname=coxpcall
pkgname=("lua-$_rockname" "lua53-$_rockname" "lua52-$_rockname" "lua51-$_rockname")
pkgver=1.17.0
_rockrel=1
_tag=${pkgver//./_}
pkgrel=3
pkgdesc='Encapsulates the protected calls with a coroutine based loop'
arch=('any')
url="https://keplerproject.github.io/$_rockname"
license=('MIT')
makedepends=('lua' 'lua53' 'lua52' 'lua51' 'luarocks')
source=("$_rockname-$_tag.tar.gz::https://github.com/keplerproject/$_rockname/archive/v$_tag.tar.gz")
sha256sums=('6044f70fcc01f50cae3a191cba13c252dcf9e6f169502e3d9c4a151934c46be0')
_package_helper() {
cd "$_rockname-$_tag"
luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
make --deps-mode=none --no-manifest "rockspec/$_rockname-$pkgver-$_rockrel.rockspec"
}
package_lua-coxpcall() {
depends+=('lua')
_package_helper 5.4
}
package_lua53-coxpcall() {
depends+=('lua53')
_package_helper 5.3
}
package_lua52-coxpcall() {
depends+=('lua52')
_package_helper 5.2
}
package_lua51-coxpcall() {
depends+=('lua51')
_package_helper 5.1
}
|