[arch-commits] Commit in busted/repos/community-any (PKGBUILD PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Wed Aug 24 14:45:59 UTC 2022
Date: Wednesday, August 24, 2022 @ 14:45:59
Author: alerque
Revision: 1276412
archrelease: copy trunk to community-any
Added:
busted/repos/community-any/PKGBUILD
(from rev 1276411, busted/trunk/PKGBUILD)
Deleted:
busted/repos/community-any/PKGBUILD
----------+
PKGBUILD | 136 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 68 insertions(+), 68 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-24 14:45:50 UTC (rev 1276411)
+++ PKGBUILD 2022-08-24 14:45:59 UTC (rev 1276412)
@@ -1,68 +0,0 @@
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-
-pkgbase=busted
-pkgname=("$pkgbase" "lua-$pkgbase" "lua53-$pkgbase" "lua52-$pkgbase" "lua51-$pkgbase")
-pkgver=2.0.0
-_rockrel=0
-pkgrel=11
-pkgdesc='Elegant Lua unit testing'
-arch=(any)
-url="https://olivinelabs.com/$pkgbase"
-license=(MIT)
-_luadeps=(cliargs
- dkjson
- filesystem
- luassert
- mediator
- penlight
- say
- system
- term)
-makedepends=(lua
- lua51
- lua52
- lua53
- luarocks)
-_archive="$pkgbase-$pkgver"
-source=("$_archive.tgz::https://github.com/Olivine-Labs/$pkgbase/archive/v$pkgver.tar.gz")
-sha256sums=('fda34db8cd10142d2a88d6df638a7d0874c295fd2bd6338c745cc546dc5847df')
-
-_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 1276411, busted/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-24 14:45:59 UTC (rev 1276412)
@@ -0,0 +1,68 @@
+# Maintainer: Caleb Maclennan <caleb at 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%-*}-}")
+}
More information about the arch-commits
mailing list