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
commit9106fc9fb221868399e183551d3b27ac9ff42ef6 (patch)
tree3e47c3ddf8ad15c3ab7d02c08b1cebafd585b2e5
parent8d78f7271e21f43a4ec5dd7fe892a68f670b2795 (diff)
downloadaports-9106fc9fb221868399e183551d3b27ac9ff42ef6.tar.gz
aports-9106fc9fb221868399e183551d3b27ac9ff42ef6.tar.bz2
aports-9106fc9fb221868399e183551d3b27ac9ff42ef6.tar.xz
community/lua-lpeg_patterns: install minimal rock_manifest
-rw-r--r--community/lua-lpeg_patterns/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/lua-lpeg_patterns/APKBUILD b/community/lua-lpeg_patterns/APKBUILD
index 87f723f26e..6fa405fa22 100644
--- a/community/lua-lpeg_patterns/APKBUILD
+++ b/community/lua-lpeg_patterns/APKBUILD
@@ -3,7 +3,7 @@
pkgname=lua-lpeg_patterns
_pkgname=lpeg_patterns
pkgver=0.4
-pkgrel=0
+pkgrel=1
pkgdesc="A collection of LPEG patterns"
url="https://github.com/daurnimator/lpeg_patterns"
arch="noarch"
@@ -45,10 +45,14 @@ _subpackage() {
depends="lua$lver ${depends//lua-/lua$lver-}"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
local lmod_dir="$subpkgdir/usr/share/lua/$lver"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$pkgver-1"
cd "$builddir"
mkdir -p "$lmod_dir"
cp -r $_pkgname "$lmod_dir"/
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="6bb012c36b2cac5cd1c2d76400cf1bc67a6ac11253839c6df991c90e76b4e513c2ddb676cfd815a71ba24b88d7e6a11b1de2df03889440b9d1b76a077e770efb lua-lpeg_patterns-0.4.tar.gz"