summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9ecc4527c23..c6e38466a53 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,22 +2,23 @@
# Contributor: Pieter Goetschalckx <3.14.e.ter at gmail dot com>
pkgname=luacheck
-pkgver=0.23.0
-pkgrel=2
+pkgver=0.24.0
+pkgrel=1
pkgdesc="A tool for linting and static analysis of Lua code."
arch=('any')
-url="https://github.com/mpeterv/luacheck"
+url="https://github.com/luarocks/luacheck"
license=('MIT')
-depends=('lua' 'lua-filesystem')
+depends=('lua' 'lua-filesystem' 'lua-argparse')
optdepends=('lua-lanes: for parallel checking')
-source=("https://github.com/mpeterv/$pkgname/archive/$pkgver.tar.gz")
-sha256sums=('b4edf3a7702519502696d4ac7372ed1bd6a82ded63bf81f2b1d7e9b37711be2b')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/luarocks/$pkgname/archive/$pkgver.tar.gz")
+sha256sums=('845ca600d6c48cdb898d46da7844a2b5e102999d0d600e7621feae490b064749')
package() {
cd "$pkgname-$pkgver"
- mkdir -p "$pkgdir/usr/share/lua/5.3/luacheck/stages"
- find src/luacheck -maxdepth 1 -type f -exec install -Dm644 {} "$pkgdir/usr/share/lua/5.3/luacheck" \;
- find src/luacheck/stages -maxdepth 1 -type f -exec install -Dm644 {} "$pkgdir/usr/share/lua/5.3/luacheck/stages" \;
+ LUA_VERSION=5.4
+ for subdir in . builtin_standards stages vendor/sha1; do
+ find src/luacheck/$subdir -maxdepth 1 -type f -exec install -Dm644 {} -t "$pkgdir/usr/share/lua/$LUA_VERSION/luacheck/$subdir" \;
+ done
install -Dm755 "bin/luacheck.lua" "$pkgdir/usr/bin/luacheck"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}