blob: f8d918a62e7e0a74ffb76ed53ffe2c76d2c3e423 (
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
|
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
_pkgname=native-objects
pkgname=(lua{,51,52,53}-"$_pkgname")
pkgver=0.5
pkgrel=1
pkgdesc="A Lua bindings generator written in Lua"
arch=(any)
url=https://github.com/Neopallium/LuaNativeObjects
license=(MIT)
makedepends=(luarocks)
source=("https://luarocks.org/manifests/neopallium/luanativeobjects-$pkgver-1.src.rock")
sha256sums=('86fa6f7e2608800946a171eb809334affdf85a38bad8b7ab505fb618e9f932c4')
_lua_version=5.4
_package() {
optdepends=("lua${1/./}-$_pkgname")
luarocks install --lua-version=$1 --tree="$pkgdir/usr/" --deps-mode=none ./*.rockspec
rm "$pkgdir"/usr/lib/luarocks/rocks-*/manifest
[[ "$1" == "$_lua_version" ]] ||
mv "$pkgdir/usr/bin/native_objects" "$pkgdir/usr/bin/native_objects$1"
}
package_lua51-native-objects() {
_package 5.1
}
package_lua52-native-objects() {
_package 5.2
}
package_lua53-native-objects() {
_package 5.3
}
package_lua-native-objects() {
_package $_lua_version
}
# ex: nowrap
|