blob: 4b4144f181a9eac1eaa6635bc843cbd81d9915f0 (
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
|
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
_pkgname=luarocks-build-xmake
pkgname=(lua{,51,52,53}-"$_pkgname")
pkgver=1.4
pkgrel=1
pkgdesc="A luarocks build module based on xmake"
arch=(any)
url=https://github.com/xmake-io/luarocks-build-xmake
license=(MIT)
depends=(luarocks xmake)
makedepends=(luarocks)
_revision=1
source=("https://luarocks.org/manifests/waruqi/luarocks-build-xmake-$pkgver-$_revision.rockspec")
sha256sums=('213f85444b990c635f1d96096c40557c0803d7b9b765c0fb8a0c0686b7bd4249')
_lua_version=5.4
_package() {
luarocks install --no-manifest --lua-version=$1 --tree="$pkgdir/usr/" --deps-mode=none ./*.rockspec
}
package_lua51-luarocks-build-xmake() {
_package 5.1
}
package_lua52-luarocks-build-xmake() {
_package 5.2
}
package_lua53-luarocks-build-xmake() {
_package 5.3
}
package_lua-luarocks-build-xmake() {
_package $_lua_version
}
# ex: nowrap
|