diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-01 23:16:57 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-02 02:24:04 +0100 |
commit | 6fbad17eb87a738754166733fb52ce8574bffa16 (patch) | |
tree | 7382872f56eecaa49649ca6345ee900712007444 /testing/lua-mediator | |
parent | 014a6f1ec857a812b5536c4aef1c83ce02741d02 (diff) | |
download | aports-6fbad17eb87a738754166733fb52ce8574bffa16.tar.bz2 aports-6fbad17eb87a738754166733fb52ce8574bffa16.tar.xz |
testing/lua-mediator: new aport
http://olivinelabs.com/mediator_lua/
Mediator pattern implementation for pub-sub management
Diffstat (limited to 'testing/lua-mediator')
-rw-r--r-- | testing/lua-mediator/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/lua-mediator/APKBUILD b/testing/lua-mediator/APKBUILD new file mode 100644 index 0000000000..40044ea66f --- /dev/null +++ b/testing/lua-mediator/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=lua-mediator +_pkgname=mediator_lua +pkgver=1.1.2 +_pkgver=$pkgver-0 +pkgrel=0 +pkgdesc="Mediator pattern implementation for pub-sub management" +url="http://olivinelabs.com/mediator_lua/" +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-mediator 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" + install_if="$pkgname=$pkgver-r$pkgrel lua$lver" + + cd "$builddir" + install -m 644 -D src/mediator.lua \ + "$subpkgdir"/usr/share/lua/$lver/mediator.lua +} + +sha512sums="116d08a96fa0bd540ac4d3cac61a529a634cba3621c6f2e917b405462bbc0e2ab5b170dc6819e470105cdedf958a382945819eaff4affa63bc057824c163c8a0 mediator_lua-1.1.2.tar.gz" |