diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-12 22:20:58 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-12 22:20:58 +0100 |
commit | f3fa5c6db3524749a9c3dafb1bfcec29b0c827dc (patch) | |
tree | fd0d3e97e0c12876cfcb703c11265ceb589e384a /community | |
parent | e42af1b049af653ef29add81a81f96cd08a7d1d4 (diff) | |
download | aports-f3fa5c6db3524749a9c3dafb1bfcec29b0c827dc.tar.bz2 aports-f3fa5c6db3524749a9c3dafb1bfcec29b0c827dc.tar.xz |
community/lua-mediator: move from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/lua-mediator/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/lua-mediator/APKBUILD b/community/lua-mediator/APKBUILD new file mode 100644 index 0000000000..40044ea66f --- /dev/null +++ b/community/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" |