aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-lpeg
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
commit8d78f7271e21f43a4ec5dd7fe892a68f670b2795 (patch)
tree2c64cb41a1f20eced245fe9091534f841754d2f8 /community/lua-lpeg
parent82698d3e97c971d7b3399208973ac5b27488405a (diff)
downloadaports-8d78f7271e21f43a4ec5dd7fe892a68f670b2795.tar.bz2
aports-8d78f7271e21f43a4ec5dd7fe892a68f670b2795.tar.xz
community/lua-lpeg: install minimal rock_manifest
Diffstat (limited to 'community/lua-lpeg')
-rw-r--r--community/lua-lpeg/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/lua-lpeg/APKBUILD b/community/lua-lpeg/APKBUILD
index 364d18a604..0b9c840e8e 100644
--- a/community/lua-lpeg/APKBUILD
+++ b/community/lua-lpeg/APKBUILD
@@ -3,7 +3,7 @@
pkgname=lua-lpeg
_pkgname=lpeg
pkgver=1.0.1
-pkgrel=2
+pkgrel=3
pkgdesc="Pattern-matching library for Lua"
url="http://www.inf.puc-rio.br/~roberto/lpeg"
arch="all"
@@ -77,6 +77,7 @@ _package() {
pkgdesc="Pattern-matching library for Lua $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-$lver"
@@ -84,6 +85,9 @@ _package() {
"$subpkgdir"/usr/lib/lua/$lver/lpeg.so || return 1
install -Dm644 re.lua \
"$subpkgdir"/usr/share/lua/$lver/re.lua || return 1
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="7b43fbee7eff443000986684bc56bba6d2796a31cf860740746c70e155bdea1b62a46b93f97e2747e3ef0f63e965148778ac2985d0f2d83e1e37ec4ebbabf4aa lpeg-1.0.1.tar.gz