archrelease: copy trunk to community-any
[ArchLinux/community.git] / lua-cldr / trunk / PKGBUILD
blob9816fde409c5b4e667763cc422e9d07f6c1261fc
1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
3 _rockname=cldr
4 _project=$_rockname-lua
5 pkgname=("lua-$_rockname" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
6 pkgver=0.3.0
7 _rockrel=0
8 pkgrel=1
9 pkgdesc='Lua interface to Unicode CLDR data'
10 arch=(any)
11 url="https://github.com/alerque/$_project"
12 license=(MIT custom:ICU)
13 _luadeps=(penlight)
14 makedepends=(lua
15              lua51
16              lua52
17              lua53
18              luarocks)
19 _archive="$_project-$pkgver"
20 source=("$_rockname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
21 sha256sums=('bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399')
23 _package() {
24         cd "$_archive"
25         depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
26         luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
27                 make --deps-mode=none --no-manifest "$_rockname-dev-$_rockrel.rockspec"
28         install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE LICENSE-Unicode
31 package_lua-cldr() {
32         _package 5.4
35 package_lua51-cldr() {
36         _package 5.1
39 package_lua52-cldr() {
40         _package 5.2
43 package_lua53-cldr() {
44         _package 5.3