Commit b7d65578 authored by Natanael Copa's avatar Natanael Copa

main/lua-json4: upgrade to 1.0.0

parent 449f35b3
# 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"
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