1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Contributor: Kilian Guillaume "cafehaine" <kilian dot guillaume at gmail dot com>
4 pkgbase=lua-std-normalize
5 _rockname=${pkgbase#lua-}
6 pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
11 pkgdesc='Lua-stdlib project’s normalized lua functions library'
13 url="https://github.com/lua-stdlib/$_pkgname"
21 # checkdepends=(specl)
22 _archive="${_rockname#std-}-$pkgver"
23 source=("$url/archive/v$pkgver/$_archive.tar.gz")
24 sha256sums=('2038c38da542cf274b0b7512928e5b649c90a34f36c8919fbbbc2524b4ef716d')
28 depends=("${pkgname%%-*}" "${_luadeps[@]/#/${pkgname%%-*}-}")
29 luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
30 make --deps-mode=none --no-manifest "${_rockname/-/.}-$pkgver-$_rockrel.rockspec"
31 install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.md
34 package_lua-std-normalize() {
38 package_lua51-std-normalize() {
42 package_lua52-std-normalize() {
46 package_lua53-std-normalize() {