mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/lua-busted: install minimal rock_manifest
This commit is contained in:
parent
8f9fe202e3
commit
6fdcfc779b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user