Package Details: luacheck 0.23.0-1

Git Clone URL: https://aur.archlinux.org/luacheck.git (read-only)
Package Base: luacheck
Description: A tool for linting and static analysis of Lua code.
Upstream URL: https://github.com/mpeterv/luacheck
Licenses: MIT
Submitter: 314eter
Maintainer: simon04
Last Packager: simon04
Votes: 18
Popularity: 0.800144
First Submitted: 2015-11-24 19:15
Last Updated: 2018-09-22 20:56

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

eimis commented on 2018-09-10 00:04

Ppjet6 after your patch it won't launch

$ luacheck 
lua: /usr/share/lua/5.3/luacheck/bin/luacheck.lua:2: module 'luacheck.main' not found:
    no field package.preload['luacheck.main']
    no file '/tmp/luacheck/pkg/luacheck/usr/share/lua/5.3/luacheck/src/luacheck/main.lua'
    no file '/tmp/luacheck/pkg/luacheck/usr/share/lua/5.3/luacheck/src/luacheck/main/init.lua'
    no file '/usr/share/lua/5.3/luacheck/main.lua'
    no file '/usr/share/lua/5.3/luacheck/main/init.lua'
    no file '/usr/lib/lua/5.3/luacheck/main.lua'
    no file '/usr/lib/lua/5.3/luacheck/main/init.lua'
    no file './luacheck/main.lua'
    no file './luacheck/main/init.lua'
    no file '/usr/lib/lua/5.3/luacheck/main.so'
    no file '/usr/lib/lua/5.3/loadall.so'
    no file './luacheck/main.so'
    no file '/usr/lib/lua/5.3/luacheck.so'
    no file '/usr/lib/lua/5.3/loadall.so'
    no file './luacheck.so'
stack traceback:
    [C]: in function 'require'
    /usr/share/lua/5.3/luacheck/bin/luacheck.lua:2: in main chunk
    [C]: in ?

Ppjet6 commented on 2018-09-09 17:45

Patches for you!

I am not entirely sure why the sh dependency is required. It's provided by bash which is available in base. Maybe somebody can point me to the place that says such a package is not assumed to be present?

The second one is an update to 0.22.1.

From b9bd580c4ee4bf954fe46df8cec97b14383310ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= <archlinux@bouah.net>
Date: Sun, 9 Sep 2018 18:39:11 +0100
Subject: [PATCH 1/2] Remove sh dependency
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Maxime “pep” Buquet <archlinux@bouah.net>
---
 .SRCINFO | 1 -
 PKGBUILD | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index cd680b4..67b4643 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,7 +7,6 @@ pkgbase = luacheck
        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
diff --git a/PKGBUILD b/PKGBUILD
index e85513e..ce6f83f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ 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')
+depends=('lua' 'lua-filesystem')
 source=("https://github.com/mpeterv/$pkgname/archive/$pkgver.tar.gz"
         "luacheck")
 sha256sums=('88e0c1c9106a4f8c2995b1ee6e83ce8b02ec2796557e8603235dd160b2fb5eb4'
-- 
2.18.0
From 5aed25fd0a7979445e7babd6223f43457482d661 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= <archlinux@bouah.net>
Date: Sun, 9 Sep 2018 18:40:36 +0100
Subject: [PATCH 2/2] Update to 0.22.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Maxime “pep” Buquet <archlinux@bouah.net>
---
 .SRCINFO | 6 +++---
 PKGBUILD | 7 ++++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 67b4643..6d271b3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +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
-       source = https://github.com/mpeterv/luacheck/archive/0.21.1.tar.gz
+       source = https://github.com/mpeterv/luacheck/archive/0.22.1.tar.gz
        source = luacheck
-       sha256sums = 88e0c1c9106a4f8c2995b1ee6e83ce8b02ec2796557e8603235dd160b2fb5eb4
+       sha256sums = 46fef6860f5cd1c432cb4ae760f231f09aa286193271f0c550d9323e451da3af
        sha256sums = fefc290dbea67b126b2fbdc0ae08f990b6561ec97f0c86bb53fbdd5cb27de201

 pkgname = luacheck
diff --git a/PKGBUILD b/PKGBUILD
index ce6f83f..086871e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: 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')
@@ -10,8 +10,6 @@ license=('MIT')
 depends=('lua' 'lua-filesystem')
 source=("https://github.com/mpeterv/$pkgname/archive/$pkgver.tar.gz"
         "luacheck")
-sha256sums=('88e0c1c9106a4f8c2995b1ee6e83ce8b02ec2796557e8603235dd160b2fb5eb4'
-            'fefc290dbea67b126b2fbdc0ae08f990b6561ec97f0c86bb53fbdd5cb27de201')

 package() {
   cd "$pkgname-$pkgver"
@@ -21,3 +19,6 @@ package() {
   install -Dm755 "$srcdir/luacheck" "$pkgdir/usr/bin/luacheck"
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
+
+sha256sums=('46fef6860f5cd1c432cb4ae760f231f09aa286193271f0c550d9323e451da3af'
+            'fefc290dbea67b126b2fbdc0ae08f990b6561ec97f0c86bb53fbdd5cb27de201')
-- 
2.18.0

314eter commented on 2015-12-15 09:11

Ok, done.

ducakar commented on 2015-12-14 18:38

Could you please fix the package to install under /usr/share/lua/5.3, like other lua packages? It's also missing sh dependency and the licence (MIT and BSD licences must always be installed due to unique copyright notices).

http://pastebin.com/9aRqSL4J