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:13 +0200
commitd8c9befe612b75e4a81d9839feb1c2f77fdf0bec (patch)
treeac77412ccac6ea3167b45b9d41e5c9ce49fcd3ce
parent043ea08bfa6d139c0fae2c5cff584e3afe805cf2 (diff)
downloadaports-d8c9befe612b75e4a81d9839feb1c2f77fdf0bec.tar.gz
aports-d8c9befe612b75e4a81d9839feb1c2f77fdf0bec.tar.bz2
aports-d8c9befe612b75e4a81d9839feb1c2f77fdf0bec.tar.xz
community/lua-glob-pattern: install minimal rock_manifest
-rw-r--r--community/lua-glob-pattern/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/lua-glob-pattern/APKBUILD b/community/lua-glob-pattern/APKBUILD
index a5aac944c0..ea1dcd5248 100644
--- a/community/lua-glob-pattern/APKBUILD
+++ b/community/lua-glob-pattern/APKBUILD
@@ -3,7 +3,7 @@
pkgname=lua-glob-pattern
pkgver=0.2.1.20120406
_gitrev=fc48cf953cfef57e7f2363f02e7b191819b477f6
-pkgrel=0
+pkgrel=1
pkgdesc="Converts file glob string to Lua pattern string"
url="https://github.com/davidm/lua-glob-pattern"
arch="noarch"
@@ -43,10 +43,14 @@ _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"
cd "$builddir"
install -m 644 -D lua/globtopattern.lua \
"$subpkgdir"/usr/share/lua/$lver/globtopattern.lua
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="8e1b31538d8c035558721d7793b15ea34f8e745bf25e6599fe514dce3f8b16decd13f80f67b9d782e53675a98791792ad0f16c180f6d9fc2686a4f4cc53e633e lua-glob-pattern-0.2.1.20120406.tar.gz"