diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2017-12-28 20:27:15 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2017-12-28 20:28:07 +0200 |
commit | 4d7e3cf3beb541dec1f44751e698c72a3f47bb5e (patch) | |
tree | bf64f0364f6fafebd6c706d5de4531ae78acaed5 /main/lua-stdlib-debug | |
parent | 06fe1358eeda5a4e7482e7afa4e223ea63e8e19b (diff) | |
download | aports-4d7e3cf3beb541dec1f44751e698c72a3f47bb5e.tar.bz2 aports-4d7e3cf3beb541dec1f44751e698c72a3f47bb5e.tar.xz |
main/lua-lyaml: add missing dependencies
Diffstat (limited to 'main/lua-stdlib-debug')
-rw-r--r-- | main/lua-stdlib-debug/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/lua-stdlib-debug/APKBUILD b/main/lua-stdlib-debug/APKBUILD new file mode 100644 index 0000000000..e1d41fd895 --- /dev/null +++ b/main/lua-stdlib-debug/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +_pkgname=stdlib-debug +pkgname=lua-$_pkgname +pkgver=1.0 +pkgrel=0 +pkgdesc="Lua Debug Hints Library" +url="https://lua-stdlib.github.io/_debug/" +arch="all" +license="MIT" +options="!check" +source="$_pkgname-$pkgver.tar.gz::https://github.com/lua-stdlib/_debug/archive/v$pkgver.tar.gz" +builddir="$srcdir/_debug-$pkgver/lib/std/_debug" + +build() { + : +} + +package() { + cd "$builddir" + + local luadir=$pkgdir/usr/share/lua + local cdir=common/std/_debug + + for mod in *.lua; do + install -D -m 644 $mod "$luadir"/$cdir/$mod + done + + for ver in 5.1 5.2 5.3; do + local dir=$luadir/$ver/std + mkdir -p "$dir" + ln -s ../../$cdir "$dir" + done +} + +sha512sums="ed9b5135489b35805f8d4f658d0b707d3e722ee4c1b6c7dea90d029b23923fb32640ffb20c4a7914cd6e6351edb26df9749256176757c7f031b1327d4bf42ec0 stdlib-debug-1.0.tar.gz" |