aboutsummaryrefslogtreecommitdiff
path: root/community/luacheck/APKBUILD
blob: a32ed53da51214ddb94709e3a6b2617014fc85c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=luacheck
pkgver=0.22.1
pkgrel=1
pkgdesc="A tool for linting and static analysis of Lua code"
url="https://github.com/mpeterv/luacheck"
arch="noarch"
license="MIT"
_luaversion="5.1"
depends="lua$_luaversion lua$_luaversion-filesystem"
checkdepends="lua$_luaversion-busted"
source="$pkgname-$pkgver.tar.gz::https://github.com/mpeterv/luacheck/archive/$pkgver.tar.gz"

check() {
	busted-$_luaversion .
}

package() {
	local lmod_dir="$pkgdir/usr/share/lua/$_luaversion"

	mkdir -p "$lmod_dir"
	cp -r src/$pkgname "$lmod_dir"/

	install -D -m 755 bin/$pkgname.lua "$pkgdir"/usr/bin/$pkgname
}

sha512sums="b4855331e848994242191138772ce55b07ebef98b616fdeda9c1549b71f539cd7e118dd06915edcf909f08334735924aebe356d4a7dd42a5d02bd5f5dd4f021d  luacheck-0.22.1.tar.gz"