aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-json4
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-04 17:27:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-04 17:28:39 +0000
commitb7d655787212c1a9f6b8b16f4b87ef3029443edf (patch)
tree74ce25b65c957d62d8695508dafb493ea60ae8d4 /main/lua-json4
parent449f35b3f52623ea72318090470be8eb70e991a2 (diff)
downloadaports-b7d655787212c1a9f6b8b16f4b87ef3029443edf.tar.bz2
aports-b7d655787212c1a9f6b8b16f4b87ef3029443edf.tar.xz
main/lua-json4: upgrade to 1.0.0
Diffstat (limited to 'main/lua-json4')
-rw-r--r--main/lua-json4/APKBUILD23
1 files changed, 11 insertions, 12 deletions
diff --git a/main/lua-json4/APKBUILD b/main/lua-json4/APKBUILD
index 64d14833f8..ee131806df 100644
--- a/main/lua-json4/APKBUILD
+++ b/main/lua-json4/APKBUILD
@@ -1,11 +1,11 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-_luaversions="5.1 5.2"
+_luaversions="5.1 5.2 5.3"
pkgname=lua-json4
_name=json4lua
-pkgver=0.9.50
-pkgrel=1
+pkgver=1.0.0
+pkgrel=0
pkgdesc="JSON encoding / decoding module for Lua (JSON4lua)"
-url="http://json.luaforge.net/"
+url="https://github.com/craigmj/json4lua"
arch="noarch"
license="GPL-2"
depends=""
@@ -14,9 +14,9 @@ for _i in $_luaversions; do
depends="$depends lua$_i-json4"
subpackages="$subpackages lua$_i-json4:split_${_i/./_}"
done
-source="http://files.luaforge.net/releases/json/json/$pkgver/json4lua-$pkgver.zip"
-replaces="json4lua"
+source="json4lua-$pkgver.tar.gz::https://github.com/craigmj/json4lua/archive/start.tar.gz"
+_builddir="$srcdir"/json4lua-start/json4lua
build() {
# do nothing, but keep it to make abuild happy
:
@@ -24,7 +24,7 @@ build() {
package() {
for _i in $_luaversions; do
- install -D "$srcdir"/json4lua-$pkgver/json/json.lua \
+ install -D "$_builddir"/json/json.lua \
"$pkgdir"/usr/share/lua/$_i/json.lua
done
}
@@ -32,8 +32,7 @@ package() {
_split() {
local d= _ver=$1
pkgdesc="JSON encoding / decoding module for Lua $_ver (JSON4lua)"
- replaces="$pkgname"
- depends="lua"
+ 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
@@ -46,6 +45,6 @@ for _i in $_luaversions; do
eval "split_${_i/./_}() { _split $_i; }"
done
-md5sums="d04a44972ec697a14e89b3a7f14c2d29 json4lua-0.9.50.zip"
-sha256sums="9565ebd1b0a95d84915221f2f401f913de92e7135c6d6ebdb38eff636a934ef1 json4lua-0.9.50.zip"
-sha512sums="7cfe0f68eea2e40e59f45359e1e867fb8aa306bdc211be3596ba6c2718687401564f365975cbbbce3d05e76bde46a42303c37a2b320ffa77212902465fac0ae6 json4lua-0.9.50.zip"
+md5sums="c77db6534485f56e7f13f5f19dd697fb json4lua-1.0.0.tar.gz"
+sha256sums="a04995bf60bf35d09c24acf48950cd2d929a5f3a4c6f083a1795253d4a26b170 json4lua-1.0.0.tar.gz"
+sha512sums="eba74bd8b49ee64152f014c7f2aea819aab46588a6490ca55a8f32e492393f5abe4cb007c307d4f3688052091f723898626996929a163772d73211a6b2c38c17 json4lua-1.0.0.tar.gz"