aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:01:04 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:02:13 +0200
commitf40302abffacff85f05096cf7542a21e94a2a257 (patch)
tree8514a50e2545f236191151a1d4d303c36e045808
parent72cff25e8368d4575d46941d1e62f6969622aabf (diff)
downloadaports-f40302abffacff85f05096cf7542a21e94a2a257.tar.gz
aports-f40302abffacff85f05096cf7542a21e94a2a257.tar.bz2
aports-f40302abffacff85f05096cf7542a21e94a2a257.tar.xz
community/lua-redis: install minimal rock_manifest
-rw-r--r--community/lua-redis/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/community/lua-redis/APKBUILD b/community/lua-redis/APKBUILD
index 304dbbfc78..9257bb509c 100644
--- a/community/lua-redis/APKBUILD
+++ b/community/lua-redis/APKBUILD
@@ -4,7 +4,7 @@ pkgname=lua-redis
_pkgname=redis-lua
_luaversions="5.1 5.2"
pkgver=2.0.4
-pkgrel=2
+pkgrel=3
pkgdesc="A Lua client library for the redis key value storage system"
url="https://github.com/nrk/redis-lua"
arch="noarch"
@@ -33,8 +33,13 @@ _subpackage() {
pkgdesc="$pkgdesc (for Lua $lver)"
depends="lua$lver lua$lver-socket"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$pkgver-1"
+
install -Dm644 $builddir/src/redis.lua \
"$subpkgdir"/usr/share/lua/"$lver"/redis.lua
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
md5sums="9fcc177ebb2ce936c178231ba445fb62 lua-redis-2.0.4.tar.gz"