aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:01:05 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:02:14 +0200
commitfd5715c8799c993d921fc5fff276e9c49546073f (patch)
treeb9dbc597b274c7d85a50a54ee73e20911e985f2b
parent8a0ec432ba6ed3ceddc696ee420124352daa1a36 (diff)
downloadaports-fd5715c8799c993d921fc5fff276e9c49546073f.tar.bz2
aports-fd5715c8799c993d921fc5fff276e9c49546073f.tar.xz
main/lua-inspect: install minimal rock_manifest
-rw-r--r--main/lua-inspect/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/lua-inspect/APKBUILD b/main/lua-inspect/APKBUILD
index 7040cdab3e..701974d0d1 100644
--- a/main/lua-inspect/APKBUILD
+++ b/main/lua-inspect/APKBUILD
@@ -1,9 +1,10 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lua-inspect
+_rockname=inspect
_pkgname=inspect.lua
pkgver=3.1.0
-pkgrel=0
+pkgrel=1
pkgdesc="Human-readable representation of Lua tables"
url="https://github.com/kikito/inspect.lua"
arch="noarch"
@@ -33,9 +34,13 @@ _package() {
pkgdesc="$pkgdesc (for Lua $lver)"
depends="lua$lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_rockname/$pkgver-1"
install -Dm644 "$builddir"/inspect.lua \
"$subpkgdir"/usr/share/lua/$lver/inspect.lua
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
md5sums="d8aa2fb827c5ac91ea31a267a65a5f93 lua-inspect-3.1.0.tar.gz"