summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f764ff023dd110a45fab734ed57cb69b37f38fe2 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Caleb Maclennan <caleb@alerque.com>

_rockname=pegdebug
_pkgname=PegDebug
pkgname=("lua-$_rockname" "lua53-$_rockname" "lua52-$_rockname" "lua51-$_rockname")
pkgver=0.41
_rockrel=1
pkgrel=5
pkgdesc='Trace debugger for LPeg rules and captures'
arch=(i686 x86_64)
url="https://github.com/pkulchenko/$_pkgname"
license=(MIT)
_luadeps=(lpeg)
makedepends=(lua
             lua51
             lua52
             lua53
             luarocks)
_archive="$_pkgname-$pkgver"
source=("$url/archive/$pkgver/$_archive.tar.gz")
sha256sums=('0ba8c5ee25cf24e011b29d40cfa5577b19cb4d9d8a086e9238187e7831fb39d1')

_package() {
	cd "$_archive"
	depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
	luarocks --lua-version "$1" --tree "$pkgdir/usr/" \
		make --deps-mode none --no-manifest -- "misc/$_rockname-$pkgver-$_rockrel.rockspec"
}

package_lua-pegdebug() {
	_package 5.4
}

package_lua51-pegdebug() {
	_package 5.1
}

package_lua52-pegdebug() {
	_package 5.2
}

package_lua53-pegdebug() {
	_package 5.3
}