aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-stdlib-debug/APKBUILD
blob: 8ca9bc8ca041dd09e650436b2e63130142557fbd (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-stdlib-debug
_rockname=std._debug
pkgver=1.0
pkgrel=2
pkgdesc="Manage an overall debug state, and associated hint substates"
url="https://lua-stdlib.github.io/_debug/"
arch="noarch"
license="MIT"
depends="lua"
provides=""
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"
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="ed9b5135489b35805f8d4f658d0b707d3e722ee4c1b6c7dea90d029b23923fb32640ffb20c4a7914cd6e6351edb26df9749256176757c7f031b1327d4bf42ec0  lua-stdlib-debug-1.0.tar.gz"