aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-posixtz
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-06 09:34:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-06 09:35:32 +0000
commit7dc38fba8d869a4a6cfd6725649df55e2a88d005 (patch)
tree446cb25470cc8e803acf7e0abee1d818c7172e6c /main/lua-posixtz
parent7d9f604ef0277912de1d379fdd46e8b8fbf71dc8 (diff)
downloadaports-7dc38fba8d869a4a6cfd6725649df55e2a88d005.tar.bz2
aports-7dc38fba8d869a4a6cfd6725649df55e2a88d005.tar.xz
main/lua-posixtz: add lua 5.3 support and use install_if
Diffstat (limited to 'main/lua-posixtz')
-rw-r--r--main/lua-posixtz/APKBUILD7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/lua-posixtz/APKBUILD b/main/lua-posixtz/APKBUILD
index 7a0b209cba..246efc5d0f 100644
--- a/main/lua-posixtz/APKBUILD
+++ b/main/lua-posixtz/APKBUILD
@@ -1,9 +1,9 @@
# 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