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-normalize | |
parent | 06fe1358eeda5a4e7482e7afa4e223ea63e8e19b (diff) | |
download | aports-4d7e3cf3beb541dec1f44751e698c72a3f47bb5e.tar.bz2 aports-4d7e3cf3beb541dec1f44751e698c72a3f47bb5e.tar.xz |
main/lua-lyaml: add missing dependencies
Diffstat (limited to 'main/lua-stdlib-normalize')
-rw-r--r-- | main/lua-stdlib-normalize/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
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" |