aboutsummaryrefslogblamecommitdiffstats
path: root/main/lua-stdlib-debug/APKBUILD
blob: ac9ca2ed4126ffb8ca954478552460a4bb48a323 (plain) (tree)
1
2
3
4
5
6
7
8



                                               
            
        
                                                                      
                                          


             



                                                                                              
                              
                           
                                                                                                  


           

                                                                                  







                                                            
                                                                                                                                                                            
# 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"