aports/main/lua-stdlib-debug/APKBUILD
Leo 52b5be29ca main/*: add lua5.4 support
adds support to all lua modules that have 5.3 support and are not
actively unsupported
2021-01-14 20:14:24 +00:00

32 lines
1.1 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-stdlib-debug
_rockname=std._debug
pkgver=1.0.1
pkgrel=1
pkgdesc="Manage an overall debug state, and associated hint substates"
url="https://lua-stdlib.github.io/_debug/"
arch="noarch"
license="MIT"
depends="lua"
options="!check" # FIXME: requires lua-specl that we don't have yet
source="$pkgname-$pkgver.tar.gz::https://github.com/lua-stdlib/_debug/archive/v$pkgver.tar.gz"
builddir="$srcdir/_debug-$pkgver"
_luaversions="5.1 5.2 5.3 5.4"
for _v in $_luaversions; do
provides="$provides lua$_v-${pkgname#lua-}=$pkgver-r$pkgrel" # for backward compatibility
done
package() {
local lmod_dir="$pkgdir/usr/share/lua/common"
local rockdir="$pkgdir/usr/lib/luarocks/rocks-common/$_rockname/$pkgver-1"
mkdir -p "$lmod_dir"
cp -r "$builddir"/lib/std "$lmod_dir"/
mkdir -p "$rockdir"
echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="784236ff161c36718a965af6b616b582158a6b919b5258511d1fc8a05cea4b4bd30a7abdda6dae602cfd5f2b47df198c2194e342ed09b80890d69e323df26ca4 lua-stdlib-debug-1.0.1.tar.gz"