[arch-commits] Commit in luacheck/repos (community-any community-any/PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Thu Mar 24 18:09:16 UTC 2022


    Date: Thursday, March 24, 2022 @ 18:09:16
  Author: alerque
Revision: 1174868

archrelease: copy trunk to community-any

Added:
  luacheck/repos/community-any/
  luacheck/repos/community-any/PKGBUILD
    (from rev 1174867, luacheck/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: luacheck/repos/community-any/PKGBUILD (from rev 1174867, luacheck/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-03-24 18:09:16 UTC (rev 1174868)
@@ -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