archrelease: copy trunk to community-any
[ArchLinux/community.git] / lua-std-normalize / trunk / PKGBUILD
blobc4c943f36764fd2821a83fee8c3da3310dd6e459
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")
7 _pkgname=normalize
8 pkgver=2.0.3
9 _rockrel=1
10 pkgrel=5
11 pkgdesc='Lua-stdlib project’s normalized lua functions library'
12 arch=(any)
13 url="https://github.com/lua-stdlib/$_pkgname"
14 license=(MIT)
15 _luadeps=(std-_debug)
16 makedepends=(lua
17              lua51
18              lua52
19              lua53
20              luarocks)
21 # checkdepends=(specl)
22 _archive="${_rockname#std-}-$pkgver"
23 source=("$url/archive/v$pkgver/$_archive.tar.gz")
24 sha256sums=('2038c38da542cf274b0b7512928e5b649c90a34f36c8919fbbbc2524b4ef716d')
26 _package() {
27         cd "$_archive"
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() {
35         _package 5.4
38 package_lua51-std-normalize() {
39         _package 5.1
42 package_lua52-std-normalize() {
43         _package 5.2
46 package_lua53-std-normalize() {
47         _package 5.3