diff options
author | Caleb Maclennan | 2022-10-21 14:21:45 +0300 |
---|---|---|
committer | Caleb Maclennan | 2022-10-21 14:21:45 +0300 |
commit | 87b58fccf188fc1f1e28b2e8edb8769ac269b828 (patch) | |
tree | 7645cfe31cd4bf4e8a556aab136b9b9fe2e1c796 | |
parent | 4463111143a1784e18db267dab6edae2cc73cb0e (diff) | |
download | aur-87b58fccf188fc1f1e28b2e8edb8769ac269b828.tar.gz |
upgpkg: luacheck-git latest.r2.g81bb2f2-1
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = luacheck-git pkgdesc = A tool for linting and static analysis of Lua code - pkgver = 0.25.0.r42.gca770a4 + pkgver = latest.r2.g81bb2f2 pkgrel = 1 url = https://github.com/lunarmodules/luacheck arch = any @@ -11,7 +11,7 @@ pkgbase = luacheck-git depends = lua-filesystem depends = lua-argparse optdepends = lua-lanes: for parallel checking - provides = luacheck=0.25.0.r42.gca770a4 + provides = luacheck=latest.r2.g81bb2f2 conflicts = luacheck source = git+https://github.com/lunarmodules/luacheck.git sha256sums = SKIP @@ -1,8 +1,9 @@ # Maintainer: Caleb Maclennan <caleb@alerque.com> pkgname=luacheck-git -pkgver=0.25.0.r42.gca770a4 +pkgver=latest.r2.g81bb2f2 pkgrel=1 +_rockrel=1 pkgdesc='A tool for linting and static analysis of Lua code' arch=(any) url="https://github.com/lunarmodules/${pkgname%-git}" @@ -16,6 +17,8 @@ provides=("${pkgname%-git}=$pkgver") conflicts=(${pkgname%-git}) optdepends=('lua-lanes: for parallel checking') _archive="${pkgname%-git}" +_rock="$_archive-dev-$_rockrel.all.rock" +_rockspec="$_archive-dev-$_rockrel.rockspec" source=("git+$url.git") sha256sums=('SKIP') @@ -26,12 +29,13 @@ pkgver() { build() { cd "$_archive" - luarocks make --pack-binary-rock --deps-mode=none --no-manifest -- ${pkgname%-git}-*.rockspec + luarocks make --pack-binary-rock --deps-mode none -- $_rockspec } package() { cd "$_archive" - luarocks install --tree="$pkgdir/usr" --deps-mode=none --no-manifest -- ${pkgname%-git}-*.all.rock + luarocks --tree "$pkgdir/usr" \ + install --deps-mode none --no-manifest -- $_rock sed -i -e "s!$pkgdir!!" "$pkgdir/usr/bin/${pkgname%-git}" install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE } |