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
commit043ea08bfa6d139c0fae2c5cff584e3afe805cf2 (patch)
tree5fe2610d8d64449cdb87fbbbee3e8c8323d056ba
parent40aa8501296cb8433a90d15cfdf2b769b1e69256 (diff)
downloadaports-043ea08bfa6d139c0fae2c5cff584e3afe805cf2.tar.gz
aports-043ea08bfa6d139c0fae2c5cff584e3afe805cf2.tar.bz2
aports-043ea08bfa6d139c0fae2c5cff584e3afe805cf2.tar.xz
community/lua-fun: install minimal rock_manifest
-rw-r--r--community/lua-fun/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/community/lua-fun/APKBUILD b/community/lua-fun/APKBUILD
index 6865f0c2cf..041bae69ca 100644
--- a/community/lua-fun/APKBUILD
+++ b/community/lua-fun/APKBUILD
@@ -1,9 +1,10 @@
# Contributor: Michael Zuo <muh.muhten@gmail.com>
# Maintainer: Michael Zuo <muh.muhten@gmail.com>
pkgname=lua-fun
+_rockname=fun
_pkgname=luafun
pkgver=0.1.3
-pkgrel=5
+pkgrel=6
pkgdesc="Functional programming library"
url="http://rtsisyk.github.io/luafun/"
arch="noarch"
@@ -44,9 +45,13 @@ _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/$_rockname/$pkgver-1"
cd "$builddir"
install -m 644 -D fun.lua "$subpkgdir"/usr/share/lua/$lver/fun.lua
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
md5sums="ab774af3d0dea06656039e5fc3ee86ad lua-fun-0.1.3.tar.gz"