diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-02 01:10:19 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-02 02:27:12 +0100 |
commit | eadc00919f2711e588d4398baa4e1f4be584face (patch) | |
tree | d1421756142e81d3b0960e2fae105025e4f54650 /testing/lua-luassert | |
parent | 3e143ddc8d4363fdff87054b9685933097dbcca7 (diff) | |
download | aports-eadc00919f2711e588d4398baa4e1f4be584face.tar.bz2 aports-eadc00919f2711e588d4398baa4e1f4be584face.tar.xz |
testing/lua-luassert: new aport
https://github.com/Olivine-Labs/luassert
Assertion library for Lua
Diffstat (limited to 'testing/lua-luassert')
-rw-r--r-- | testing/lua-luassert/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/lua-luassert/APKBUILD b/testing/lua-luassert/APKBUILD new file mode 100644 index 0000000000..d515d40ed8 --- /dev/null +++ b/testing/lua-luassert/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=lua-luassert +_pkgname=luassert +pkgver=1.7.10 +pkgrel=0 +pkgdesc="Assertion library for Lua" +url="https://github.com/Olivine-Labs/luassert" +arch="noarch" +license="MIT" +subpackages="" +source="$pkgname-$pkgver.tar.gz::https://github.com/Olivine-Labs/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" +# This module needs lua-busted to run tests, but lua-busted depends on +# lua-luassert and we wanna avoid circular dependencies. +options="!check" + +_luaversions="5.1 5.2 5.3" +for _v in $_luaversions; do + subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage" +done + +package() { + mkdir -p "$pkgdir" +} + +_subpackage() { + local lver="${subpkgname:3:3}" + pkgdesc="$pkgdesc (for Lua $lver)" + depends="lua$lver lua$lver-say" + install_if="$pkgname=$pkgver-r$pkgrel lua$lver" + local destdir="$subpkgdir/usr/share/lua/$lver/$_pkgname" + + cd "$builddir" + mkdir -p "$destdir" + cp -r src/* "$destdir"/ +} + +sha512sums="2d5ca354b5f7b971f0d3420c305d921143cd7f9e1a6f4559cb466b833886a00a045e7b7c594bd9ec3c929b3d5bb8a7a4a6de75a6599e5cba7614b7652061bf05 lua-luassert-1.7.10.tar.gz" |