diff options
author | Caleb Maclennan | 2022-03-23 17:14:21 +0300 |
---|---|---|
committer | Caleb Maclennan | 2022-03-23 17:14:21 +0300 |
commit | f7bd62fdfba91e8ee06b0c5b1a5e7bc04bff3977 (patch) | |
tree | 8fbb9a0813891d5a3dae2bb5ba4c2669889a5191 | |
parent | 74a9af2e30501cacec6266c5c27a2baea41218b6 (diff) | |
download | aur-f7bd62fdfba91e8ee06b0c5b1a5e7bc04bff3977.tar.gz |
upgpkg: luacheck 0.25.0-3
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = luacheck pkgdesc = A tool for linting and static analysis of Lua code pkgver = 0.25.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/lunarmodules/luacheck arch = any license = MIT @@ -4,7 +4,7 @@ pkgname=luacheck pkgver=0.25.0 -pkgrel=2 +pkgrel=3 pkgdesc='A tool for linting and static analysis of Lua code' arch=(any) url="https://github.com/lunarmodules/$pkgname" @@ -18,8 +18,14 @@ _archive="$pkgname-$pkgver" source=("$url/archive/$pkgver/$_archive.tar.gz") sha256sums=('4507648bee9e67b2d30058f7befbbb58cd387a2503f4f348c2aae6e93417aaa1') +build() { + cd "$_archive" + luarocks make --pack-binary-rock --deps-mode=none --no-manifest -- $pkgname-*.rockspec +} + package() { cd "$_archive" - luarocks --tree="$pkgdir/usr/" make --deps-mode=none --no-manifest + luarocks install --tree="$pkgdir/usr" --deps-mode=none --no-manifest -- $pkgname-*.all.rock + sed -i -e "s!$pkgdir!!" "$pkgdir/usr/bin/$pkgname" install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE } |