aboutsummaryrefslogtreecommitdiffstats
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
commit6fdcfc779b9353c66f4c5fe04bde06cd05c44f99 (patch)
treee5b2a7e053c6994a2e085819b65ca0da0b3c8e8d
parent8f9fe202e37a9d4f865aee7869978118fca3aff7 (diff)
downloadaports-6fdcfc779b9353c66f4c5fe04bde06cd05c44f99.tar.gz
aports-6fdcfc779b9353c66f4c5fe04bde06cd05c44f99.tar.bz2
aports-6fdcfc779b9353c66f4c5fe04bde06cd05c44f99.tar.xz
community/lua-busted: install minimal rock_manifest
-rw-r--r--community/lua-busted/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/lua-busted/APKBUILD b/community/lua-busted/APKBUILD
index 4881315ce0..e757ef3dc4 100644
--- a/community/lua-busted/APKBUILD
+++ b/community/lua-busted/APKBUILD
@@ -4,7 +4,7 @@ pkgname=lua-busted
_pkgname=busted
pkgver=2.0_rc12
_pkgver=${pkgver/_/.}-1
-pkgrel=3
+pkgrel=4
pkgdesc="Elegant Lua unit testing"
url="https://olivinelabs.com/busted/"
arch="noarch"
@@ -74,12 +74,16 @@ _subpackage() {
depends="lua$lver ${depends//lua-/lua$lver-}"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
local destdir="$subpkgdir/usr/share/lua/$lver/$_pkgname"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$_pkgver"
cd "$builddir"
mkdir -p "$destdir"
cp -r busted/* "$destdir" || return 1
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
+
install -m 755 -D bin/busted-$lver "$subpkgdir"/usr/bin/busted-$lver
}