Date: Thursday, August 25, 2022 @ 16:15:00
  Author: alerque
Revision: 1279492

archrelease: copy trunk to community-any

Added:
  busted/repos/community-any/PKGBUILD
    (from rev 1279491, busted/trunk/PKGBUILD)
Deleted:
  busted/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  138 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 70 insertions(+), 68 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-08-25 16:14:50 UTC (rev 1279491)
+++ PKGBUILD    2022-08-25 16:15:00 UTC (rev 1279492)
@@ -1,68 +0,0 @@
-# Maintainer: Caleb Maclennan <ca...@alerque.com>
-
-pkgbase=busted
-pkgname=("$pkgbase" "lua-$pkgbase" "lua53-$pkgbase" "lua52-$pkgbase" 
"lua51-$pkgbase")
-pkgver=2.1.1
-_rockrel=1
-pkgrel=1
-pkgdesc='Elegant Lua unit testing'
-arch=(any)
-url="https://lunarmodules.github.io/$pkgbase/";
-license=(MIT)
-_luadeps=(cliargs
-          dkjson
-          filesystem
-          luassert
-          mediator
-          penlight
-          say
-          system
-          term)
-makedepends=(lua
-             lua51
-             lua52
-             lua53
-             luarocks)
-_archive="$pkgbase-$pkgver"
-source=("https://github.com/lunarmodules/$pkgbase/archive/v$pkgver/$_archive.tar.gz";)
-sha256sums=('5b75200fd6e1933a2233b94b4b0b56a2884bf547d526cceb24741738c0443b47')
-
-_package() {
-       cd "$_archive"
-       luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
-               make --deps-mode=none --no-manifest 
"rockspecs/$_archive-$_rockrel.rockspec"
-       install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
-       if [[ $pkgname =~ lua* ]]; then
-               rm -rf "$pkgdir/usr/bin"
-       else
-               rm -rf "$pkgdir/usr/share/lua"
-               rm -rf "$pkgdir/usr/lib"
-               find "$pkgdir/usr/bin" -type f -execdir sed -i -e "s#$pkgdir##" 
{} \;
-       fi
-}
-
-package_busted() {
-       _package 5.4
-       pkgdesc+=' (CLI)'
-       depends=(lua "lua-$pkgname")
-}
-
-package_lua-busted() {
-       _package 5.4
-       depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
-}
-
-package_lua51-busted() {
-       _package 5.1
-       depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
-}
-
-package_lua52-busted() {
-       _package 5.2
-       depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
-}
-
-package_lua53-busted() {
-       _package 5.3
-       depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
-}

Copied: busted/repos/community-any/PKGBUILD (from rev 1279491, 
busted/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-08-25 16:15:00 UTC (rev 1279492)
@@ -0,0 +1,70 @@
+# Maintainer: Caleb Maclennan <ca...@alerque.com>
+
+pkgbase=busted
+pkgname=("$pkgbase" "lua-$pkgbase" "lua53-$pkgbase" "lua52-$pkgbase" 
"lua51-$pkgbase")
+pkgver=2.1.1
+_rockrel=1
+pkgrel=2
+pkgdesc='Elegant Lua unit testing'
+arch=(any)
+url="https://lunarmodules.github.io/$pkgbase/";
+license=(MIT)
+_luadeps=(cliargs
+          dkjson
+          filesystem
+          luassert
+          mediator
+          penlight
+          say
+          system
+          term)
+makedepends=(lua
+             lua51
+             lua52
+             lua53
+             luarocks)
+_archive="$pkgbase-$pkgver"
+source=("https://github.com/lunarmodules/$pkgbase/archive/v$pkgver/$_archive.tar.gz";)
+sha256sums=('5b75200fd6e1933a2233b94b4b0b56a2884bf547d526cceb24741738c0443b47')
+
+_package() {
+       cd "$_archive"
+       luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
+               make --deps-mode=none --no-manifest 
"rockspecs/$_archive-$_rockrel.rockspec"
+       install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+       if [[ $pkgname =~ lua* ]]; then
+               rm -rf "$pkgdir/usr/bin"
+       else
+               rm -rf "$pkgdir/usr/share/lua"
+               rm -rf "$pkgdir/usr/lib"
+               find "$pkgdir/usr/bin" -type f -execdir sed -i -e "s#$pkgdir##" 
{} \;
+       fi
+}
+
+package_busted() {
+       _package 5.4
+       pkgdesc+=' (CLI)'
+       depends=(lua "lua-$pkgname")
+       install -Dm0644 -t "$pkgdir/usr/share/zsh/site-functions/" 
"completions/zsh/_$pkgname"
+       install -Dm0644 -t "$pkgdir/usr/share/bash-completion/completions/" 
"completions/bash/$pkgname.bash"
+}
+
+package_lua-busted() {
+       _package 5.4
+       depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
+}
+
+package_lua51-busted() {
+       _package 5.1
+       depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
+}
+
+package_lua52-busted() {
+       _package 5.2
+       depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
+}
+
+package_lua53-busted() {
+       _package 5.3
+       depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
+}

Reply via email to