[arch-commits] Commit in lua-testmore/repos (community-any community-any/PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Fri Dec 31 08:36:27 UTC 2021


    Date: Friday, December 31, 2021 @ 08:36:27
  Author: alerque
Revision: 1089848

archrelease: copy trunk to community-any

Added:
  lua-testmore/repos/community-any/
  lua-testmore/repos/community-any/PKGBUILD
    (from rev 1089847, lua-testmore/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: lua-testmore/repos/community-any/PKGBUILD (from rev 1089847, lua-testmore/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-12-31 08:36:27 UTC (rev 1089848)
@@ -0,0 +1,45 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+_project=lua-TestMore
+pkgbase=${_project,,}
+_rockname=${pkgbase#lua-}
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=0.3.5
+_rockrel=1
+pkgrel=4
+pkgdesc='A Lua port of the Perl Test::More unit testing framework'
+arch=(any)
+url="https://framagit.org/fperrad/$_project"
+license=(MIT)
+checkdepends=('lua')
+_archive="$_project-$pkgver"
+source=("$url/-/archive/$pkgver/$_archive.tar.bz2")
+sha256sums=('a2daca2648e904def3e5467612d09e4f8956b1bc474d5f0994533e2aed3c5b8b')
+
+check() {
+	cd "$_archive"
+	make check
+}
+
+_package() {
+	cd "$_archive"
+	depends=("${pkgname%-*}")
+	make LUAVER="$1" PREFIX=/usr DESTDIR="$pkgdir" install
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYRIGHT
+}
+
+package_lua-testmore() {
+	  _package 5.4
+}
+
+package_lua53-testmore() {
+	_package 5.3
+}
+
+package_lua52-testmore() {
+	_package 5.2
+}
+
+package_lua51-testmore() {
+	_package 5.1
+}



More information about the arch-commits mailing list