aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-mpack/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/lua-mpack/APKBUILD')
-rw-r--r--community/lua-mpack/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/community/lua-mpack/APKBUILD b/community/lua-mpack/APKBUILD
index 85e5f79057..8e5059347c 100644
--- a/community/lua-mpack/APKBUILD
+++ b/community/lua-mpack/APKBUILD
@@ -1,9 +1,10 @@
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lua-mpack
+_rockname=mpack
_pkgname=libmpack-lua
pkgver=1.0.6
-pkgrel=0
+pkgrel=1
_libmpack_ver=1.0.4
pkgdesc="Libmpack bindings for Lua"
url="https://github.com/libmpack/libmpack-lua"
@@ -73,12 +74,16 @@ _subpackage() {
local lver="${subpkgname:3:3}"
pkgdesc="$pkgdesc $lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_rockname/$pkgver-0"
make -C "$builddir-$lver" \
USE_SYSTEM_LUA=yes \
LUA_CMOD_INSTALLDIR="$(pkg-config --variable=INSTALL_CMOD lua$lver)" \
DESTDIR="$subpkgdir" \
install
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="3a2f0697f94957c15a78ff24b296a034f301d1e8ab51d5636389f0fad7be838d450c59038c61d4173fa9e0463aa5565cfc0c35c273b4961a5e5631d343ca0605 libmpack-lua-1.0.6.tar.gz