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 | |
parent | 06fe1358eeda5a4e7482e7afa4e223ea63e8e19b (diff) | |
download | aports-4d7e3cf3beb541dec1f44751e698c72a3f47bb5e.tar.bz2 aports-4d7e3cf3beb541dec1f44751e698c72a3f47bb5e.tar.xz |
main/lua-lyaml: add missing dependencies
Diffstat (limited to 'main')
-rw-r--r-- | main/lua-lyaml/APKBUILD | 4 | ||||
-rw-r--r-- | main/lua-stdlib-debug/APKBUILD | 36 | ||||
-rw-r--r-- | main/lua-stdlib-normalize/APKBUILD | 37 |
3 files changed, 75 insertions, 2 deletions
diff --git a/main/lua-lyaml/APKBUILD b/main/lua-lyaml/APKBUILD index 672c96c6f7..e5bf60156f 100644 --- a/main/lua-lyaml/APKBUILD +++ b/main/lua-lyaml/APKBUILD @@ -2,7 +2,7 @@ _pkgname=lyaml pkgname=lua-$_pkgname pkgver=6.2 -pkgrel=0 +pkgrel=1 pkgdesc="LibYAML binding for Lua" url="https://github.com/gvvaughan/lyaml" arch="all" @@ -38,7 +38,7 @@ _subpackage() { local lver="${subpkgname%-lyaml}" lver=${lver#lua} pkgdesc="$pkgdesc $lver" - depends="lua$lver" + depends="lua$lver lua-stdlib-normalize" install_if="$pkgname=$pkgver-r$pkgrel lua$lver" local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$pkgver-1" 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" diff --git a/main/lua-stdlib-normalize/APKBUILD b/main/lua-stdlib-normalize/APKBUILD new file mode 100644 index 0000000000..1d04e42c51 --- /dev/null +++ b/main/lua-stdlib-normalize/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +_pkgname=stdlib-normalize +pkgname=lua-$_pkgname +pkgver=2.0.1 +pkgrel=0 +pkgdesc="Normalized Lua functions" +url="https://lua-stdlib.github.io/normalize/" +arch="all" +license="MIT" +depends="lua-stdlib-debug" +options="!check" +source="$_pkgname-$pkgver.tar.gz::https://github.com/lua-stdlib/normalize/archive/v$pkgver.tar.gz" +builddir="$srcdir/normalize-$pkgver/lib/std/normalize" + +build() { + : +} + +package() { + cd "$builddir" + + local luadir=$pkgdir/usr/share/lua + local cdir=common/std/normalize + + 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="a5dd11d65f613c16dfaae59703f1c296a6d74a56e6dfd12c0e288fa60bb0a344474922a0fe298a8a77d1d18672f45d21c12e1b3fb2ef6b306687975de336cb5c stdlib-normalize-2.0.1.tar.gz" |