[arch-commits] Commit in lua-cassowary/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Dec 30 21:11:05 UTC 2021
Date: Thursday, December 30, 2021 @ 21:11:04
Author: alerque
Revision: 1088942
upgpkg: lua-cassowary 2.3.1-3; add check function now that busted is available
Modified:
lua-cassowary/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-30 20:40:39 UTC (rev 1088941)
+++ PKGBUILD 2021-12-30 21:11:04 UTC (rev 1088942)
@@ -6,7 +6,7 @@
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
+pkgrel=3
pkgdesc='The cassowary constraint solver'
arch=(any)
url="https://github.com/sile-typesetter/$_project"
@@ -17,16 +17,22 @@
lua52
lua53
luarocks)
+checkdepends=(busted)
_archive="$_project-$pkgver"
-source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz")
+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
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
package_lua-cassowary() {
More information about the arch-commits
mailing list