aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-cjson/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-01 19:34:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-01 19:34:24 +0000
commitd71982f4c6e0cd9c311300f80f3551cd24cf3cd5 (patch)
treeb1baa912b03b7699e920ab0c78bc6b535298dcd1 /main/lua-cjson/APKBUILD
parent9f2d6a40b9f1c1a767253fc1b8da299c4d188748 (diff)
downloadaports-d71982f4c6e0cd9c311300f80f3551cd24cf3cd5.tar.bz2
aports-d71982f4c6e0cd9c311300f80f3551cd24cf3cd5.tar.xz
main/lua-cjson: add support for ua 5.3 and use install_if
Diffstat (limited to 'main/lua-cjson/APKBUILD')
-rw-r--r--main/lua-cjson/APKBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/main/lua-cjson/APKBUILD b/main/lua-cjson/APKBUILD
index e28d550a1b..961e9ebcf7 100644
--- a/main/lua-cjson/APKBUILD
+++ b/main/lua-cjson/APKBUILD
@@ -1,14 +1,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-_luaversions="5.1 5.2"
+_luaversions="5.1 5.2 5.3"
pkgname=lua-cjson
pkgver=2.1.0
-pkgrel=4
+pkgrel=5
pkgdesc="fast JSON parsing and encoding support for Lua"
url="http://www.kyne.com.au/~mark/software/lua-cjson.php"
arch="all"
license="MIT"
-depends="lua5.1-cjson"
+depends=""
install=""
makedepends=""
subpackages=""
@@ -57,6 +57,7 @@ _split() {
pkgdesc="fast JSON parsing and encoding support for Lua $_ver"
replaces="$pkgname"
depends=
+ install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
for d in usr/lib/lua usr/share/lua; do
if [ -d "$pkgdir"/$d/$_ver ]; then
mkdir -p "$subpkgdir"/$d