diff options
author | Caleb Maclennan | 2020-02-06 13:29:20 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-02-06 13:34:48 +0300 |
commit | d48fe8b552ef72a50040df4eaed12ab69745e7bd (patch) | |
tree | 4d05c80ff1fb76e125fadb606450b1ce85d304cc | |
parent | ca263b6992611a847ae873076953df89129c0920 (diff) | |
download | aur-d48fe8b552ef72a50040df4eaed12ab69745e7bd.tar.gz |
Remove AUR build path from binary, unconflict exectuables
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = lua-busted pkgdesc = Elegant Lua unit testing. pkgver = 2.0.0 - pkgrel = 5 + pkgrel = 6 url = https://olivinelabs.com/busted arch = i686 arch = x86_64 @@ -4,7 +4,8 @@ _rockname=busted pkgname=("lua-$_rockname" "lua52-$_rockname" "lua51-$_rockname") pkgver=2.0.0 _rockrel=1 -pkgrel=5 +__rockrel=0 +pkgrel=6 pkgdesc='Elegant Lua unit testing.' arch=('i686' 'x86_64') url="https://olivinelabs.com/$_rockname" @@ -16,7 +17,8 @@ sha256sums=('fda34db8cd10142d2a88d6df638a7d0874c295fd2bd6338c745cc546dc5847df') _package_helper() { cd "$_rockname-$pkgver" - luarocks --lua-version=$1 --tree="$pkgdir/usr/" make --deps-mode=none --no-manifest "$_rockname-scm-$_rockrel.rockspec" + luarocks --lua-version=$1 --tree="$pkgdir/usr/" make --deps-mode=none --no-manifest "rockspecs/$_rockname-$pkgver-$__rockrel.rockspec" + find "$pkgdir/usr/bin" -type f -execdir sed -i -e "s#$pkgdir##" {} \; } package_lua-busted() { @@ -27,9 +29,11 @@ package_lua-busted() { package_lua52-busted() { depends+=('lua52' "${_lua_deps[@]/#/lua52-}") _package_helper 5.2 + mv "$pkgdir"/usr/bin/busted{,52} } package_lua51-busted() { depends+=('lua51' "${_lua_deps[@]/#/lua51-}") _package_helper 5.1 + mv "$pkgdir"/usr/bin/busted{,51} } |