aboutsummaryrefslogtreecommitdiffstats
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:12 +0200
commita5e151957b5db090e13f1123f40342e1081f34ea (patch)
tree18c63f7151fce6864e1e24c74818ba65fdb41556
parent43194561d12a87cfc725fdc0a21cfc698ccb80e4 (diff)
downloadaports-a5e151957b5db090e13f1123f40342e1081f34ea.tar.gz
aports-a5e151957b5db090e13f1123f40342e1081f34ea.tar.bz2
aports-a5e151957b5db090e13f1123f40342e1081f34ea.tar.xz
community/lua-coxpcall: install minimal rock_manifest
-rw-r--r--community/lua-coxpcall/APKBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/community/lua-coxpcall/APKBUILD b/community/lua-coxpcall/APKBUILD
index a7e57c8c03..b71aca6fc0 100644
--- a/community/lua-coxpcall/APKBUILD
+++ b/community/lua-coxpcall/APKBUILD
@@ -4,7 +4,7 @@ pkgname=lua-coxpcall
_pkgname=coxpcall
pkgver=1.16.0
_pkgver=${pkgver//./_}
-pkgrel=0
+pkgrel=1
pkgdesc="Coroutine safe xpcall and pcall for Lua"
url="http://keplerproject.github.io/coxpcall/"
arch="noarch"
@@ -30,9 +30,13 @@ _package() {
pkgdesc="$pkgdesc $lver"
depends="lua$lver"
install_if="lua$lver $pkgname=$pkgver-r$pkgrel"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$pkgver-1"
cd "$builddir"
- make DESTDIR="$subpkgdir" LUA_DIR="/usr/share/lua/$lver" install || return 1
+ make DESTDIR="$subpkgdir" LUA_DIR="/usr/share/lua/$lver" install
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
md5sums="1d25a2e5b0c0cd529b1fdc35dea2a06b lua-coxpcall-1.16.0.tar.gz"