aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-loadkit
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:01:03 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:02:13 +0200
commit82698d3e97c971d7b3399208973ac5b27488405a (patch)
tree4ffe9a263105ed801a16fa2219394d17dc098f12 /community/lua-loadkit
parentd8c9befe612b75e4a81d9839feb1c2f77fdf0bec (diff)
downloadaports-82698d3e97c971d7b3399208973ac5b27488405a.tar.bz2
aports-82698d3e97c971d7b3399208973ac5b27488405a.tar.xz
community/lua-loadkit: install minimal rock_manifest
Diffstat (limited to 'community/lua-loadkit')
-rw-r--r--community/lua-loadkit/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/lua-loadkit/APKBUILD b/community/lua-loadkit/APKBUILD
index ba7a487eb9..f54eae22db 100644
--- a/community/lua-loadkit/APKBUILD
+++ b/community/lua-loadkit/APKBUILD
@@ -3,7 +3,7 @@
pkgname=lua-loadkit
_pkgname=loadkit
pkgver=1.1.0
-pkgrel=0
+pkgrel=1
pkgdesc="Allows to load arbitrary files within the Lua package path"
url="https://github.com/leafo/loadkit"
arch="noarch"
@@ -29,9 +29,13 @@ _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-1"
install -D -m 644 "$builddir"/loadkit.lua \
"$subpkgdir"/usr/share/lua/$lver/loadkit.lua
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="1d4405d8c2819f4293117df06b1587d190b9925fe77e4d055400b4610813b771b8d7f7fef78e5884ebd494b78fc51c94eb5b5b677b6ec532309b9b489e738457 lua-loadkit-1.1.0.tar.gz"