diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-18 01:18:55 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-18 01:19:32 +0200 |
commit | 00120ffbe11bd5875919de663d544c435b1e4522 (patch) | |
tree | 48aa9e1916f434694d5842c3c2e1116312b44f50 /testing/luasrcdiet | |
parent | 74b8427cc21f04e32030d047ae92caa618105b53 (diff) | |
download | aports-00120ffbe11bd5875919de663d544c435b1e4522.tar.bz2 aports-00120ffbe11bd5875919de663d544c435b1e4522.tar.xz |
testing/luasrcdiet: new aport
https://github.com/jirutka/luasrcdiet
Compresses Lua source code by removing unnecessary characters
Diffstat (limited to 'testing/luasrcdiet')
-rw-r--r-- | testing/luasrcdiet/APKBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/luasrcdiet/APKBUILD b/testing/luasrcdiet/APKBUILD new file mode 100644 index 0000000000..193a21b3ec --- /dev/null +++ b/testing/luasrcdiet/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=luasrcdiet +pkgver=0.2.0 +pkgrel=0 +pkgdesc="Compresses Lua source code by removing unnecessary characters" +url="https://github.com/jirutka/luasrcdiet" +arch="noarch" +license="MIT" +depends="lua" +makedepends="lua-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 + +package() { + local lmod_dir="$(pkgconf --variable=INSTALL_LMOD lua)" + cd "$builddir" + + mkdir -p "$pkgdir"/$lmod_dir + cp -r $pkgname "$pkgdir"/$lmod_dir/ + + mkdir -p "$pkgdir"/usr/bin + ln -s $lmod_dir/$pkgname/LuaSrcDiet.lua "$pkgdir"/usr/bin/luasrcdiet +} + +sha512sums="bdf1237e7995d7eb45bc1632379bc86d35b6da815de09829ff909638b7710c6caa236ad55694726ed0a49db492fe193289dd17ed42d51455b31542095510be25 luasrcdiet-0.2.0.tar.gz" |