summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Legner2018-09-11 08:58:43 +0200
committerSimon Legner2018-09-11 08:58:43 +0200
commitcf7dfdda85a8aac7c879fb6d73d0639a19384a44 (patch)
tree3ea116120a876a38441ef8d346deedb447cc8a0f
parentd7aa6d6e02531767f13c6cc33501f34a2d6cb214 (diff)
downloadaur-cf7dfdda85a8aac7c879fb6d73d0639a19384a44.tar.gz
Update to 0.22.1-1
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD21
-rwxr-xr-xluacheck2
3 files changed, 14 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cd680b4d733..9e608538d1f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,15 @@
pkgbase = luacheck
pkgdesc = A tool for linting and static analysis of Lua code.
- pkgver = 0.21.1
+ pkgver = 0.22.1
pkgrel = 1
url = https://github.com/mpeterv/luacheck
arch = any
license = MIT
depends = lua
depends = lua-filesystem
- depends = sh
- source = https://github.com/mpeterv/luacheck/archive/0.21.1.tar.gz
- source = luacheck
- sha256sums = 88e0c1c9106a4f8c2995b1ee6e83ce8b02ec2796557e8603235dd160b2fb5eb4
- sha256sums = fefc290dbea67b126b2fbdc0ae08f990b6561ec97f0c86bb53fbdd5cb27de201
+ optdepends = lua-lanes: for parallel checking
+ source = https://github.com/mpeterv/luacheck/archive/0.22.1.tar.gz
+ sha256sums = 46fef6860f5cd1c432cb4ae760f231f09aa286193271f0c550d9323e451da3af
pkgname = luacheck
diff --git a/PKGBUILD b/PKGBUILD
index e85513e6e18..d6fa18165ed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,22 @@
-# Maintainer: Pieter Goetschalckx <3.14.e.ter at gmail dot com>
+# Maintainer: Simon Legner <Simon.Legner@gmail.com>
+# Contributor: Pieter Goetschalckx <3.14.e.ter at gmail dot com>
pkgname=luacheck
-pkgver=0.21.1
+pkgver=0.22.1
pkgrel=1
pkgdesc="A tool for linting and static analysis of Lua code."
arch=('any')
url="https://github.com/mpeterv/luacheck"
license=('MIT')
-depends=('lua' 'lua-filesystem' 'sh')
-source=("https://github.com/mpeterv/$pkgname/archive/$pkgver.tar.gz"
- "luacheck")
-sha256sums=('88e0c1c9106a4f8c2995b1ee6e83ce8b02ec2796557e8603235dd160b2fb5eb4'
- 'fefc290dbea67b126b2fbdc0ae08f990b6561ec97f0c86bb53fbdd5cb27de201')
+depends=('lua' 'lua-filesystem')
+optdepends=('lua-lanes: for parallel checking')
+source=("https://github.com/mpeterv/$pkgname/archive/$pkgver.tar.gz")
+sha256sums=('46fef6860f5cd1c432cb4ae760f231f09aa286193271f0c550d9323e451da3af')
package() {
cd "$pkgname-$pkgver"
-
- lua install.lua "$pkgdir/usr/share/lua/5.3/luacheck"
-
- install -Dm755 "$srcdir/luacheck" "$pkgdir/usr/bin/luacheck"
+ mkdir -p "$pkgdir/usr/share/lua/5.3/luacheck"
+ install -Dm644 $(find "src/luacheck" -type f) "$pkgdir/usr/share/lua/5.3/luacheck"
+ install -Dm755 "bin/luacheck.lua" "$pkgdir/usr/bin/luacheck"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
diff --git a/luacheck b/luacheck
deleted file mode 100755
index a5dfb0bc338..00000000000
--- a/luacheck
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/share/lua/5.3/luacheck/bin/luacheck "$@"