diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-22 20:01:02 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-22 20:02:12 +0200 |
commit | 6fdcfc779b9353c66f4c5fe04bde06cd05c44f99 (patch) | |
tree | e5b2a7e053c6994a2e085819b65ca0da0b3c8e8d /community/lua-busted | |
parent | 8f9fe202e37a9d4f865aee7869978118fca3aff7 (diff) | |
download | aports-6fdcfc779b9353c66f4c5fe04bde06cd05c44f99.tar.bz2 aports-6fdcfc779b9353c66f4c5fe04bde06cd05c44f99.tar.xz |
community/lua-busted: install minimal rock_manifest
Diffstat (limited to 'community/lua-busted')
-rw-r--r-- | community/lua-busted/APKBUILD | 6 |
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 } |