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

Caleb Maclennan alerque at gemini.archlinux.org
Thu Dec 30 21:12:03 UTC 2021


    Date: Thursday, December 30, 2021 @ 21:12:03
  Author: alerque
Revision: 1088943

archrelease: copy trunk to community-any

Added:
  lua-cassowary/repos/community-any/PKGBUILD
    (from rev 1088942, lua-cassowary/trunk/PKGBUILD)
Deleted:
  lua-cassowary/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  101 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 52 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-30 21:11:04 UTC (rev 1088942)
+++ PKGBUILD	2021-12-30 21:12:03 UTC (rev 1088943)
@@ -1,49 +0,0 @@
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-
-pkgbase=lua-cassowary
-_rockname=${pkgbase#lua-}
-_project=$_rockname.lua
-pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
-pkgver=2.3.1
-_rockrel=1 # upstream rockrel 2 is only needed for installing with Luarocks 2.x
-pkgrel=2
-pkgdesc='The cassowary constraint solver'
-arch=(any)
-url="https://github.com/sile-typesetter/$_project"
-license=(MIT)
-_lua_deps=(penlight)
-makedepends=(lua
-             lua51
-             lua52
-             lua53
-             luarocks)
-_archive="$_project-$pkgver"
-source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('1cdf42d8736ac39becef7d0ff635317e1b0952968c9c8a5a2755a25aed17499a')
-
-_package() {
-	cd "$_archive"
-	luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
-		make --deps-mode=none --no-manifest "rockspecs/$_rockname-$pkgver-$_rockrel.rockspec"
-    install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
-}
-
-package_lua-cassowary() {
-	depends=(lua "${_lua_deps[@]/#/lua-}")
-	_package 5.4
-}
-
-package_lua51-cassowary() {
-	depends=(lua51 "${_lua_deps[@]/#/lua51-}")
-	_package 5.1
-}
-
-package_lua52-cassowary() {
-	depends=(lua52 "${_lua_deps[@]/#/lua52-}")
-	_package 5.2
-}
-
-package_lua53-cassowary() {
-	depends=(lua53 "${_lua_deps[@]/#/lua53-}")
-	_package 5.3
-}

Copied: lua-cassowary/repos/community-any/PKGBUILD (from rev 1088942, lua-cassowary/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-30 21:12:03 UTC (rev 1088943)
@@ -0,0 +1,52 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgbase=lua-cassowary
+_rockname=${pkgbase#lua-}
+_project=$_rockname.lua
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=2.3.1
+_rockrel=1 # upstream rockrel 2 is only needed for installing with Luarocks 2.x
+pkgrel=3
+pkgdesc='The cassowary constraint solver'
+arch=(any)
+url="https://github.com/sile-typesetter/$_project"
+license=(MIT)
+_luadeps=(penlight)
+makedepends=(lua
+             lua51
+             lua52
+             lua53
+             luarocks)
+checkdepends=(busted)
+_archive="$_project-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('1cdf42d8736ac39becef7d0ff635317e1b0952968c9c8a5a2755a25aed17499a')
+
+check() {
+	cd "$_archive"
+	busted
+}
+
+_package() {
+	cd "$_archive"
+	depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
+	luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
+		make --deps-mode=none --no-manifest "rockspecs/$_rockname-$pkgver-$_rockrel.rockspec"
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
+
+package_lua-cassowary() {
+	_package 5.4
+}
+
+package_lua51-cassowary() {
+	_package 5.1
+}
+
+package_lua52-cassowary() {
+	_package 5.2
+}
+
+package_lua53-cassowary() {
+	_package 5.3
+}



More information about the arch-commits mailing list