[arch-commits] Commit in (4 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Mar 24 18:08:55 UTC 2022
Date: Thursday, March 24, 2022 @ 18:08:55
Author: alerque
Revision: 1174867
Migrate luacheck from AUR
Added:
luacheck/
luacheck/repos/
luacheck/trunk/
luacheck/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Added: luacheck/trunk/PKGBUILD
===================================================================
--- luacheck/trunk/PKGBUILD (rev 0)
+++ luacheck/trunk/PKGBUILD 2022-03-24 18:08:55 UTC (rev 1174867)
@@ -0,0 +1,32 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Simon Legner <Simon.Legner at gmail.com>
+# Contributor: Pieter Goetschalckx <3.14.e.ter at gmail dot com>
+
+pkgname=luacheck
+pkgver=0.26.0
+pkgrel=2
+_rockrel=1
+pkgdesc='A tool for linting and static analysis of Lua code'
+arch=(any)
+url="https://github.com/lunarmodules/$pkgname"
+license=(MIT)
+depends=(lua
+ lua-filesystem
+ lua-argparse)
+makedepends=(luarocks)
+optdepends=('lua-lanes: for parallel checking')
+_archive="$pkgname-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('78b74cae0e94155e500755c8e60d921ee7250cfec2acd8ab4df480625c425594')
+
+build() {
+ cd "$_archive"
+ luarocks make --pack-binary-rock --deps-mode=none -- rockspecs/$_archive-$_rockrel.rockspec
+}
+
+package() {
+ cd "$_archive"
+ luarocks install --tree="$pkgdir/usr" --deps-mode=none --no-manifest -- $_archive-$_rockrel.all.rock
+ sed -i -e "s!$pkgdir!!" "$pkgdir/usr/bin/$pkgname"
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
More information about the arch-commits
mailing list