From d71982f4c6e0cd9c311300f80f3551cd24cf3cd5 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 1 Apr 2015 19:34:24 +0000 Subject: main/lua-cjson: add support for ua 5.3 and use install_if --- main/lua-cjson/APKBUILD | 7 ++++--- 1 file 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 -_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 -- cgit v1.2.3