Commit 7dc38fba authored by Natanael Copa's avatar Natanael Copa

main/lua-posixtz: add lua 5.3 support and use install_if

parent 7d9f604e
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_luaversions="5.1 5.2"
_luaversions="5.1 5.2 5.3"
pkgname=lua-posixtz
pkgver=0.5
pkgrel=0
pkgrel=1
pkgdesc="Lua module to extract POSIX timezone from tzdata"
url="http://git.alpinelinux.org/cgit/posixtz.git/"
arch="all"
......@@ -14,7 +14,6 @@ depends_dev=""
makedepends="$depends_dev"
subpackages=""
for _i in $_luaversions; do
depends="$depends lua$_i-posixtz"
makedepends="$makedepends lua$_i-dev"
subpackages="$subpackages lua$_i-posixtz:split_${_i/./_}"
done
......@@ -53,7 +52,7 @@ package() {
_split() {
local d= _ver=$1
pkgdesc="Lua $_ver module to extract POSIX timezone from tzdata"
replaces="$pkgname"
install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
depends=
for d in usr/lib/lua usr/share/lua; do
if [ -d "$pkgdir"/$d/$_ver ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment