diff options
Diffstat (limited to 'user/luarocks')
-rw-r--r-- | user/luarocks/APKBUILD | 21 | ||||
-rw-r--r-- | user/luarocks/config.lua | 17 |
2 files changed, 28 insertions, 10 deletions
diff --git a/user/luarocks/APKBUILD b/user/luarocks/APKBUILD index f9ce9632f..fe0a75290 100644 --- a/user/luarocks/APKBUILD +++ b/user/luarocks/APKBUILD @@ -1,30 +1,31 @@ -# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> -# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> pkgname=luarocks -pkgver=3.1.3 +pkgver=3.9.2 pkgrel=0 pkgdesc="Package manager for Lua software" url="https://luarocks.org/" arch="noarch" options="!check" # No test suite license="MIT" -depends="" -makedepends="lua5.3-dev" -source="https://luarocks.github.io/luarocks/releases/luarocks-$pkgver.tar.gz" +depends="lua5.3-dev" +makedepends="" +source="https://luarocks.github.io/luarocks/releases/luarocks-$pkgver.tar.gz + config.lua" build() { - cd "$builddir" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --lua-version=5.3 \ - --rocks-tree=/usr/share/lua/5.3 + --rocks-tree=/usr/local make build } package() { - cd "$builddir" make DESTDIR="$pkgdir" install + install -D -m 644 "$srcdir"/config.lua "$pkgdir"/etc/$pkgname/config.lua } -sha512sums="233e17cd89f99eb387b9e5256edb10c920fb0dd7a173561b24c09c45c341de62f85dba85787788546deef206022602d3f707291935da1a2aee5c05fcad6ddc1b luarocks-3.1.3.tar.gz" +sha512sums="7e93164bdcf35338e993822931a8e59957ab69c6e23236a7a075649c2f7cd173305c4ca6e9d115fc5e282cb76c21754d7adac92b21885006e5ee3bc06a9d0059 luarocks-3.9.2.tar.gz +5845d5643c3eeb6d4af6d919a588c5253c91e6a0b278116b4cd855437fc48ac64970fd3ef758c135bc0536ddc1aaa16b01c50e33c864f59aeef1ccced0d01d82 config.lua" diff --git a/user/luarocks/config.lua b/user/luarocks/config.lua new file mode 100644 index 000000000..beb6ce586 --- /dev/null +++ b/user/luarocks/config.lua @@ -0,0 +1,17 @@ +rocks_trees = { + -- User-local Lua and Lua/C modules. + { name = 'user', + root = home..'/.luarocks' }, + -- System-wide Lua and Lua/C modules for specific Lua version installed by apk. + { name = 'distro-modules', + root = '/usr' }, + -- System-wide Lua modules compatible with Lua 5.1-5.4 installed by apk. + { name = 'distro-modules-common', + root = '/usr', + lua_dir = '/usr/share/lua/common', + rocks_dir = '/usr/lib/luarocks/rocks-common' }, + -- System-wide Lua and Lua/C modules installed by user. + { name = 'system', + root = '/usr/local' }, +} +deps_mode = 'all' |