diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/luapak/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/luapak/APKBUILD b/testing/luapak/APKBUILD new file mode 100644 index 0000000000..f338de07c4 --- /dev/null +++ b/testing/luapak/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=luapak +pkgver=0.1.0_beta2 +_pkgver=${pkgver/_/.} +pkgrel=0 +pkgdesc="Easily build a standalone executable for any Lua program" +url="https://github.com/jirutka/luapak" +arch="noarch" +license="MIT" +_luaver=5.3 +depends="lua$_luaver + lua$_luaver-depgraph + lua$_luaver-glob-pattern + lua$_luaver-filesystem + lua$_luaver-optparse + luarocks$_luaver + binutils + gcc + libc-dev + lua$_luaver-dev + " +source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$pkgname/archive/v$_pkgver.tar.gz" +builddir="$srcdir/$pkgname-$_pkgver" +options="!check" # upstream does not provide tests yet + +prepare() { + default_prepare + + cd "$builddir" + sed -i "s|#!/usr/bin/env lua|#!/usr/bin/lua$_luaver|" \ + luapak/cli/init.lua +} + +package() { + local lmod_dir="$pkgdir/usr/share/lua/$_luaver" + cd "$builddir" + + mkdir -p "$lmod_dir" + cp -r luapak "$lmod_dir"/ + + install -m 755 -D luapak/cli/init.lua "$pkgdir"/usr/bin/luapak +} + +sha512sums="898615faae1c97eec7b9d4f36be23fe22bed10e06627d27b90d4a0c956d4fe125ec2ecd3098fd598d92b8654c0e0edc2f7de2028f8274e49f35b37b4012b1b98 luapak-0.1.0_beta2.tar.gz" |