aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-mediator/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/lua-mediator/APKBUILD')
-rw-r--r--community/lua-mediator/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/lua-mediator/APKBUILD b/community/lua-mediator/APKBUILD
index 40044ea66f..3d0492c6de 100644
--- a/community/lua-mediator/APKBUILD
+++ b/community/lua-mediator/APKBUILD
@@ -4,7 +4,7 @@ pkgname=lua-mediator
_pkgname=mediator_lua
pkgver=1.1.2
_pkgver=$pkgver-0
-pkgrel=0
+pkgrel=1
pkgdesc="Mediator pattern implementation for pub-sub management"
url="http://olivinelabs.com/mediator_lua/"
arch="noarch"
@@ -30,10 +30,14 @@ _subpackage() {
pkgdesc="$pkgdesc (for Lua $lver)"
depends="lua$lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$_pkgver"
cd "$builddir"
install -m 644 -D src/mediator.lua \
"$subpkgdir"/usr/share/lua/$lver/mediator.lua
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="116d08a96fa0bd540ac4d3cac61a529a634cba3621c6f2e917b405462bbc0e2ab5b170dc6819e470105cdedf958a382945819eaff4affa63bc057824c163c8a0 mediator_lua-1.1.2.tar.gz"