aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-cliargs
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:01:02 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:02:12 +0200
commitb09efb2fd1e1a79207af3083b013498a1fd84720 (patch)
tree2501c0b9980e604d1b6941e1d1e419584facdf8d /community/lua-cliargs
parent6fdcfc779b9353c66f4c5fe04bde06cd05c44f99 (diff)
downloadaports-b09efb2fd1e1a79207af3083b013498a1fd84720.tar.bz2
aports-b09efb2fd1e1a79207af3083b013498a1fd84720.tar.xz
community/lua-cliargs: install minimal rock_manifest
Diffstat (limited to 'community/lua-cliargs')
-rw-r--r--community/lua-cliargs/APKBUILD9
1 files changed, 4 insertions, 5 deletions
diff --git a/community/lua-cliargs/APKBUILD b/community/lua-cliargs/APKBUILD
index 00f43ff066..adea9625b2 100644
--- a/community/lua-cliargs/APKBUILD
+++ b/community/lua-cliargs/APKBUILD
@@ -4,7 +4,7 @@ pkgname=lua-cliargs
_pkgname=lua_cliargs
pkgver=3.0.1
_pkgver=${pkgver%.*}-${pkgver##*.}
-pkgrel=0
+pkgrel=1
pkgdesc="A command-line argument parsing module for Lua"
url="https://github.com/amireh/lua_cliargs"
arch="noarch"
@@ -29,17 +29,16 @@ _subpackage() {
pkgdesc="$pkgdesc $lver"
depends="lua$lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$_pkgver"
cd "$builddir"
luarocks-$lver install \
--deps-mode=none \
--tree="$subpkgdir/usr" \
- $_pkgname-$_pkgver.rockspec || return 1
+ $_pkgname-$_pkgver.rockspec
- # Remove LuaRock manifests.
- rm -Rf "$subpkgdir"/usr/lib/luarocks
- rmdir "$subpkgdir"/usr/lib
+ rm -r "$rockdir"/../../manifest "$rockdir"/doc
}
sha512sums="2bdcd3c790a82351df598cb3d289de980fe771222ebd9715036678eecdbe51b7563d24629afa4d286b900d722bf844004d12f2330744a1e644d9286ac44b4dbe lua-cliargs-3.0.1.tar.gz"