wok-next rev 21151

Add/update some Lua packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 31 00:34:43 2019 +0200 (2019-01-31)
parents 185843dae3b8
children c5f2e3dd8d8f
files libquvi-scripts/receipt lua-alt-getopt/.icon.png lua-alt-getopt/receipt lua-alt-getopt/stuff/patches/lua5.2-compat.patch lua-alt-getopt/stuff/patches/series lua-bitop/.icon.png lua-bitop/receipt lua-expat/.icon.png lua-expat/receipt lua-filesystem/.icon.png lua-filesystem/receipt lua-json/.icon.png lua-json/receipt lua-lpeg/.icon.png lua-lpeg/receipt lua-lub/.icon.png lua-lub/receipt lua-markdown/.icon.png lua-markdown/receipt luabitop/receipt luaexpat/receipt luafilesystem/receipt luajson/receipt lualpeg/receipt prosody/receipt
line diff
     1.1 --- a/libquvi-scripts/receipt	Wed Jan 30 23:34:32 2019 +0200
     1.2 +++ b/libquvi-scripts/receipt	Thu Jan 31 00:34:43 2019 +0200
     1.3 @@ -28,7 +28,7 @@
     1.4  	case $PACKAGE in
     1.5  		libquvi-scripts)
     1.6  			copy @std
     1.7 -			DEPENDS="luabitop luaexpat luajson"
     1.8 +			DEPENDS="lua53-bitop lua53-expat lua53-json"
     1.9  			;;
    1.10  		*-dev)
    1.11  			copy @dev
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/lua-alt-getopt/.icon.png	Thu Jan 31 00:34:43 2019 +0200
     2.3 @@ -0,0 +1,1 @@
     2.4 +../lua53/.icon.png
     2.5 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/lua-alt-getopt/receipt	Thu Jan 31 00:34:43 2019 +0200
     3.3 @@ -0,0 +1,24 @@
     3.4 +# SliTaz package receipt v2.
     3.5 +
     3.6 +PACKAGE="lua-alt-getopt"
     3.7 +VERSION="0.7.0"
     3.8 +CATEGORY="development"
     3.9 +SHORT_DESC="Lua module for processing options similar to getopt_long(3)"
    3.10 +MAINTAINER="al.bobylev@gmail.com"
    3.11 +LICENSE="MIT"
    3.12 +WEB_SITE="http://luaforge.net/projects/alt-getopt/"
    3.13 +HOST_ARCH="any"
    3.14 +REPOLOGY="lua:alt-getopt"
    3.15 +
    3.16 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.17 +WGET_URL="http://files.luaforge.net/releases/alt-getopt/alt-getopt/alt-getopt-$VERSION/$TARBALL"
    3.18 +TARBALL_SHA1="431b590002f5fdced78e0745a9a283aefdd1dfa0"
    3.19 +
    3.20 +DEPENDS="lua" # virtual "lua" package
    3.21 +
    3.22 +compile_rules() {
    3.23 +	install -Dm644 alt_getopt.lua $install/usr/share/lua/common/alt_getopt.lua
    3.24 +
    3.25 +	mv alt_getopt alt-getopt.lua
    3.26 +	cook_pick_docs ChangeLog NEWS README alt-getopt.lua
    3.27 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/lua-alt-getopt/stuff/patches/lua5.2-compat.patch	Thu Jan 31 00:34:43 2019 +0200
     4.3 @@ -0,0 +1,64 @@
     4.4 +From 86eb438ffb3580e6f7e82c17929d59c914dd46cb Mon Sep 17 00:00:00 2001
     4.5 +From: =?UTF-8?q?Peter=20Drahos=CC=8C?= <drahosp@gmail.com>
     4.6 +Date: Wed, 16 May 2012 10:40:55 +0200
     4.7 +Subject: [PATCH] Updated lua 5.2 compatibility
     4.8 +
     4.9 +---
    4.10 + CMakeLists.txt |  2 +-
    4.11 + alt_getopt     |  2 +-
    4.12 + alt_getopt.lua | 11 +++++++----
    4.13 + dist.info      |  2 +-
    4.14 + 4 files changed, 10 insertions(+), 7 deletions(-)
    4.15 +
    4.16 +diff --git a/alt_getopt b/alt_getopt
    4.17 +index 4a48bf4..9fafee6 100755
    4.18 +--- a/alt_getopt
    4.19 ++++ b/alt_getopt
    4.20 +@@ -1,6 +1,6 @@
    4.21 + #!/usr/bin/env lua
    4.22 + 
    4.23 +-require "alt_getopt"
    4.24 ++local alt_getopt = require "alt_getopt"
    4.25 + 
    4.26 + local long_opts = {
    4.27 +    verbose = "v",
    4.28 +diff --git a/alt_getopt.lua b/alt_getopt.lua
    4.29 +index 7a6591a..efba5ac 100644
    4.30 +--- a/alt_getopt.lua
    4.31 ++++ b/alt_getopt.lua
    4.32 +@@ -21,8 +21,6 @@
    4.33 + 
    4.34 + local type, pairs, ipairs, io, os = type, pairs, ipairs, io, os
    4.35 + 
    4.36 +-module ("alt_getopt")
    4.37 +-
    4.38 + local function convert_short2long (opts)
    4.39 +    local i = 1
    4.40 +    local len = #opts
    4.41 +@@ -61,7 +59,7 @@ local function canonize (options, opt)
    4.42 +    return opt
    4.43 + end
    4.44 + 
    4.45 +-function get_ordered_opts (arg, sh_opts, long_opts)
    4.46 ++local function get_ordered_opts (arg, sh_opts, long_opts)
    4.47 +    local i      = 1
    4.48 +    local count  = 1
    4.49 +    local opts   = {}
    4.50 +@@ -150,7 +148,7 @@ function get_ordered_opts (arg, sh_opts, long_opts)
    4.51 +    return opts,i,optarg
    4.52 + end
    4.53 + 
    4.54 +-function get_opts (arg, sh_opts, long_opts)
    4.55 ++local function get_opts (arg, sh_opts, long_opts)
    4.56 +    local ret = {}
    4.57 + 
    4.58 +    local opts,optind,optarg = get_ordered_opts (arg, sh_opts, long_opts)
    4.59 +@@ -164,3 +162,8 @@ function get_opts (arg, sh_opts, long_opts)
    4.60 + 
    4.61 +    return ret,optind
    4.62 + end
    4.63 ++
    4.64 ++return {
    4.65 ++    get_ordered_opts = get_ordered_opts,
    4.66 ++    get_opts = get_opts,
    4.67 ++}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/lua-alt-getopt/stuff/patches/series	Thu Jan 31 00:34:43 2019 +0200
     5.3 @@ -0,0 +1,2 @@
     5.4 +# from Alpine Linux
     5.5 +lua5.2-compat.patch # abridged
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/lua-bitop/.icon.png	Thu Jan 31 00:34:43 2019 +0200
     6.3 @@ -0,0 +1,1 @@
     6.4 +../lua53/.icon.png
     6.5 \ No newline at end of file
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/lua-bitop/receipt	Thu Jan 31 00:34:43 2019 +0200
     7.3 @@ -0,0 +1,50 @@
     7.4 +# SliTaz package receipt v2.
     7.5 +
     7.6 +ORIGIN="bitop"
     7.7 +PACKAGE="lua-bitop"
     7.8 +VERSION="1.0.2"
     7.9 +CATEGORY="system-tools"
    7.10 +SHORT_DESC="Bitwise operations on numbers"
    7.11 +MAINTAINER="al.bobylev@gmail.com"
    7.12 +LICENSE="MIT"
    7.13 +WEB_SITE="https://bitop.luajit.org/"
    7.14 +REPOLOGY="lua:bitop"
    7.15 +
    7.16 +TARBALL="LuaBitOp-$VERSION.tar.gz"
    7.17 +WGET_URL="https://bitop.luajit.org/download/$TARBALL"
    7.18 +TARBALL_SHA1="1f611edbc4f65279072c96af15bd6e455ea9dd10"
    7.19 +
    7.20 +BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev"
    7.21 +SPLIT="lua51-bitop:5.1 lua52-bitop:5.2 lua53-bitop:5.3"
    7.22 +
    7.23 +COPY_lua51_bitop="@std"
    7.24 +COPY_lua52_bitop="@std"
    7.25 +COPY_lua53_bitop="@std"
    7.26 +
    7.27 +DEPENDS_lua51_bitop="lua51"
    7.28 +DEPENDS_lua52_bitop="lua52"
    7.29 +DEPENDS_lua53_bitop="lua53"
    7.30 +
    7.31 +CAT_std="nopack|"
    7.32 +CAT_lua51_bitop="system-tools|for Lua 5.1"
    7.33 +CAT_lua52_bitop="system-tools|for Lua 5.2"
    7.34 +CAT_lua53_bitop="system-tools|for Lua 5.3"
    7.35 +
    7.36 +compile_rules() {
    7.37 +	if [ -z "$SET" ]; then
    7.38 +		cook_pick_docs doc/*
    7.39 +		return
    7.40 +	fi
    7.41 +
    7.42 +	# get variables from .pc file
    7.43 +	pc="lua${SET/./}"
    7.44 +	includedir=$(pkg-config --variable=includedir $pc)
    7.45 +	install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
    7.46 +
    7.47 +	DEFINES=''; [ "$SET" = '5.3' ] && DEFINES='-DLUA_NUMBER_DOUBLE' # hack
    7.48 +	make \
    7.49 +		DEFINES="$DEFINES" \
    7.50 +		INCLUDES=" -I$includedir" \
    7.51 +		LUA="lua${SET/./}" &&
    7.52 +	install -Dm755 bit.so "$install$install_cmod/bit.so" || return 1
    7.53 +}
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/lua-expat/.icon.png	Thu Jan 31 00:34:43 2019 +0200
     8.3 @@ -0,0 +1,1 @@
     8.4 +../lua53/.icon.png
     8.5 \ No newline at end of file
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/lua-expat/receipt	Thu Jan 31 00:34:43 2019 +0200
     9.3 @@ -0,0 +1,45 @@
     9.4 +# SliTaz package receipt v2.
     9.5 +
     9.6 +ORIGIN="luaexpat"
     9.7 +PACKAGE="lua-expat"
     9.8 +VERSION="1.3.0"
     9.9 +CATEGORY="system-tools"
    9.10 +SHORT_DESC="SAX XML parser based on the Expat library"
    9.11 +MAINTAINER="al.bobylev@gmail.com"
    9.12 +LICENSE="MIT"
    9.13 +WEB_SITE="http://matthewwild.co.uk/projects/luaexpat/"
    9.14 +REPOLOGY="lua:expat"
    9.15 +
    9.16 +TARBALL="$ORIGIN-$VERSION.tar.gz"
    9.17 +WGET_URL="http://matthewwild.co.uk/projects/luaexpat/$TARBALL"
    9.18 +TARBALL_SHA1="e56bbf2e980ffb3f82629270221bdf98f3bd757b"
    9.19 +
    9.20 +BUILD_DEPENDS="expat-dev lua51-dev lua52-dev lua53-dev"
    9.21 +SPLIT="lua51-expat:5.1 lua52-expat:5.2 lua53-expat:5.3"
    9.22 +
    9.23 +COPY_lua51_expat="@std"
    9.24 +COPY_lua52_expat="@std"
    9.25 +COPY_lua53_expat="@std"
    9.26 +
    9.27 +CAT_std="nopack|"
    9.28 +CAT_lua51_expat="system-tools|for Lua 5.1"
    9.29 +CAT_lua52_expat="system-tools|for Lua 5.2"
    9.30 +CAT_lua53_expat="system-tools|for Lua 5.3"
    9.31 +
    9.32 +DEPENDS_lua51_expat="expat lua51"
    9.33 +DEPENDS_lua52_expat="expat lua52"
    9.34 +DEPENDS_lua53_expat="expat lua53"
    9.35 +
    9.36 +compile_rules() {
    9.37 +	if [ -z "$SET" ]; then
    9.38 +		cook_pick_docs $src/doc/us/*
    9.39 +		return
    9.40 +	fi
    9.41 +
    9.42 +	case $ARCH in
    9.43 +		x86_64) CFLAGS="$CFLAGS -fPIC";;
    9.44 +	esac
    9.45 +
    9.46 +	make LUA_V=$SET CFLAGS="$CFLAGS -DLUA_C89_NUMBERS" &&
    9.47 +	make LUA_V=$SET install
    9.48 +}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/lua-filesystem/.icon.png	Thu Jan 31 00:34:43 2019 +0200
    10.3 @@ -0,0 +1,1 @@
    10.4 +../lua53/.icon.png
    10.5 \ No newline at end of file
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/lua-filesystem/receipt	Thu Jan 31 00:34:43 2019 +0200
    11.3 @@ -0,0 +1,50 @@
    11.4 +# SliTaz package receipt v2.
    11.5 +
    11.6 +ORIGIN="luafilesystem"
    11.7 +PACKAGE="lua-filesystem"
    11.8 +VERSION="1.7.0.2"
    11.9 +CATEGORY="libdevel"
   11.10 +SHORT_DESC="File system library for the Lua programming language"
   11.11 +MAINTAINER="pascal.bellard@slitaz.org"
   11.12 +LICENSE="MIT"
   11.13 +WEB_SITE="https://keplerproject.github.io/luafilesystem/"
   11.14 +REPOLOGY="lua:filesystem"
   11.15 +
   11.16 +TARBALL="$ORIGIN-$VERSION.tar.gz"
   11.17 +WGET_URL="https://github.com/keplerproject/$ORIGIN/archive/v${VERSION//./_}.tar.gz"
   11.18 +TARBALL_SHA1="910de0959ff72703b284c26783979b663c4dc0d2"
   11.19 +
   11.20 +BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev"
   11.21 +SPLIT="lua51-filesystem:5.1 lua52-filesystem:5.2 lua53-filesystem:5.3"
   11.22 +
   11.23 +COPY_lua51_filesystem="@std"
   11.24 +COPY_lua52_filesystem="@std"
   11.25 +COPY_lua53_filesystem="@std"
   11.26 +
   11.27 +CAT_std="nopack|"
   11.28 +CAT_lua51_filesystem="system-tools|for Lua 5.1"
   11.29 +CAT_lua52_filesystem="system-tools|for Lua 5.2"
   11.30 +CAT_lua53_filesystem="system-tools|for Lua 5.3"
   11.31 +
   11.32 +DEPENDS_lua51_filesystem="lua51"
   11.33 +DEPENDS_lua52_filesystem="lua52"
   11.34 +DEPENDS_lua53_filesystem="lua53"
   11.35 +
   11.36 +compile_rules() {
   11.37 +	if [ -z "$SET" ]; then
   11.38 +		cook_pick_docs $src/doc/us/*
   11.39 +		return
   11.40 +	fi
   11.41 +
   11.42 +	case $ARCH in
   11.43 +		x86_64) CFLAGS="$CFLAGS -fPIC";;
   11.44 +	esac
   11.45 +
   11.46 +	# get variables from .pc file
   11.47 +	pc="lua${SET/./}"
   11.48 +	cflags=$(pkg-config --cflags $pc)
   11.49 +	install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
   11.50 +
   11.51 +	make CFLAGS="$CFLAGS $cflags" &&
   11.52 +	make LUA_LIBDIR=$install$install_cmod install
   11.53 +}
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/lua-json/.icon.png	Thu Jan 31 00:34:43 2019 +0200
    12.3 @@ -0,0 +1,1 @@
    12.4 +../lua53/.icon.png
    12.5 \ No newline at end of file
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/lua-json/receipt	Thu Jan 31 00:34:43 2019 +0200
    13.3 @@ -0,0 +1,31 @@
    13.4 +# SliTaz package receipt v2.
    13.5 +
    13.6 +PACKAGE="lua-json"
    13.7 +VERSION="1.3.4"
    13.8 +CATEGORY="system-tools"
    13.9 +SHORT_DESC="JSON parser/encoder for Lua"
   13.10 +MAINTAINER="al.bobylev@gmail.com"
   13.11 +LICENSE="MIT"
   13.12 +WEB_SITE="https://github.com/harningt/luajson"
   13.13 +HOST_ARCH="any"
   13.14 +REPOLOGY="lua:json"
   13.15 +
   13.16 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   13.17 +WGET_URL="https://github.com/harningt/luajson/archive/$VERSION.tar.gz"
   13.18 +TARBALL_SHA1="2ea25e4147ad661ff3b6d0427439bf99c06eb46d"
   13.19 +
   13.20 +BUILD_DEPENDS="lua53-dev"
   13.21 +DEPENDS="lua lua-lpeg" # virtual "lua" and "lua-lpeg" packages
   13.22 +
   13.23 +compile_rules() {
   13.24 +	make \
   13.25 +		LUA_BIN=lua53 \
   13.26 +		PREFIX=/usr \
   13.27 +		INSTALL_TOP=$install \
   13.28 +		INSTALL_LMOD=/usr/share/lua/common/ \
   13.29 +		install || return 1
   13.30 +
   13.31 +	cook_pick_docs docs/*
   13.32 +
   13.33 +	find $install -exec chmod g-w '{}' \; # 664->644, 775->755
   13.34 +}
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/lua-lpeg/.icon.png	Thu Jan 31 00:34:43 2019 +0200
    14.3 @@ -0,0 +1,1 @@
    14.4 +../lua53/.icon.png
    14.5 \ No newline at end of file
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/lua-lpeg/receipt	Thu Jan 31 00:34:43 2019 +0200
    15.3 @@ -0,0 +1,57 @@
    15.4 +# SliTaz package receipt v2.
    15.5 +
    15.6 +PACKAGE="lua-lpeg"
    15.7 +VERSION="1.0.1"
    15.8 +CATEGORY="system-tools"
    15.9 +SHORT_DESC="Pattern-matching library for Lua"
   15.10 +MAINTAINER="al.bobylev@gmail.com"
   15.11 +LICENSE="MIT"
   15.12 +WEB_SITE="http://www.inf.puc-rio.br/~roberto/lpeg/"
   15.13 +REPOLOGY="lua:lpeg"
   15.14 +
   15.15 +TARBALL="lpeg-$VERSION.tar.gz"
   15.16 +WGET_URL="http://www.inf.puc-rio.br/~roberto/lpeg/$TARBALL"
   15.17 +TARBALL_SHA1="b2f81624e0ce9c99c0731287c3475fac1f1c0f50"
   15.18 +
   15.19 +BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev"
   15.20 +SPLIT="lua51-lpeg:5.1 lua52-lpeg:5.2 lua53-lpeg:5.3"
   15.21 +
   15.22 +COPY_lua51_lpeg="@std"
   15.23 +COPY_lua52_lpeg="@std"
   15.24 +COPY_lua53_lpeg="@std"
   15.25 +
   15.26 +DEPENDS_lua51_lpeg="lua51"
   15.27 +DEPENDS_lua52_lpeg="lua52"
   15.28 +DEPENDS_lua53_lpeg="lua53"
   15.29 +
   15.30 +CAT_std="nopack|"
   15.31 +CAT_lua51_lpeg="system-tools|for Lua 5.1"
   15.32 +CAT_lua52_lpeg="system-tools|for Lua 5.2"
   15.33 +CAT_lua53_lpeg="system-tools|for Lua 5.3"
   15.34 +
   15.35 +PROVIDE_lua51_lpeg="lua-lpeg"
   15.36 +PROVIDE_lua52_lpeg="lua-lpeg"
   15.37 +PROVIDE_lua53_lpeg="lua-lpeg"
   15.38 +
   15.39 +compile_rules() {
   15.40 +	if [ -z "$SET" ]; then
   15.41 +		cook_pick_docs HISTORY lpeg.html re.html lpeg-128.gif
   15.42 +		find $install -exec chmod u+w '{}' \;
   15.43 +		return
   15.44 +	fi
   15.45 +
   15.46 +	case $ARCH in
   15.47 +		x86_64) CFLAGS="$CFLAGS -fPIC";;
   15.48 +	esac
   15.49 +
   15.50 +	# get variables from .pc file
   15.51 +	pc="lua${SET/./}"
   15.52 +	includedir=$(pkg-config --variable=includedir $pc)
   15.53 +	install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
   15.54 +	install_lmod=$(pkg-config --variable=INSTALL_LMOD $pc)
   15.55 +
   15.56 +	make LUADIR=$includedir || return 1
   15.57 +
   15.58 +	install -Dm755 lpeg.so $install$install_cmod/lpeg.so
   15.59 +	install -Dm644 re.lua  $install$install_lmod/re.lua
   15.60 +}
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/lua-lub/.icon.png	Thu Jan 31 00:34:43 2019 +0200
    16.3 @@ -0,0 +1,1 @@
    16.4 +../lua53/.icon.png
    16.5 \ No newline at end of file
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/lua-lub/receipt	Thu Jan 31 00:34:43 2019 +0200
    17.3 @@ -0,0 +1,23 @@
    17.4 +# SliTaz package receipt v2.
    17.5 +
    17.6 +ORIGIN="lub"
    17.7 +PACKAGE="lua-lub"
    17.8 +VERSION="1.1.0"
    17.9 +CATEGORY="development"
   17.10 +SHORT_DESC="Lubyk base module for Lua"
   17.11 +MAINTAINER="al.bobylev@gmail.com"
   17.12 +LICENSE="MIT"
   17.13 +WEB_SITE="http://doc.lubyk.org/lub.html"
   17.14 +HOST_ARCH="any"
   17.15 +REPOLOGY="lua:lub"
   17.16 +
   17.17 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   17.18 +WGET_URL="https://github.com/lubyk/lub/archive/REL-$VERSION.tar.gz"
   17.19 +TARBALL_SHA1="cf6ab1eb69af5413863480472b453c27fdcf394b"
   17.20 +
   17.21 +DEPENDS="lua" # virtual "lua" package
   17.22 +
   17.23 +compile_rules() {
   17.24 +	mkdir -p $install/usr/share/lua/common/
   17.25 +	cp -r $src/lub $install/usr/share/lua/common/
   17.26 +}
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/lua-markdown/.icon.png	Thu Jan 31 00:34:43 2019 +0200
    18.3 @@ -0,0 +1,1 @@
    18.4 +../lua53/.icon.png
    18.5 \ No newline at end of file
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/lua-markdown/receipt	Thu Jan 31 00:34:43 2019 +0200
    19.3 @@ -0,0 +1,30 @@
    19.4 +# SliTaz package receipt v2.
    19.5 +
    19.6 +PACKAGE="lua-markdown"
    19.7 +VERSION="0.33"
    19.8 +CATEGORY="system-tools"
    19.9 +SHORT_DESC="Markdown text-to-html markup system"
   19.10 +MAINTAINER="al.bobylev@gmail.com"
   19.11 +LICENSE="MIT"
   19.12 +WEB_SITE="https://github.com/mpeterv/markdown"
   19.13 +HOST_ARCH="any"
   19.14 +REPOLOGY="lua:markdown"
   19.15 +
   19.16 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   19.17 +WGET_URL="https://github.com/mpeterv/markdown/archive/$VERSION.tar.gz"
   19.18 +TARBALL_SHA1="692030bee6553756bd82c527b23446c05c4263b3"
   19.19 +
   19.20 +BUILD_DEPENDS="lua53" # for test
   19.21 +DEPENDS="lua" # virtual "lua" package
   19.22 +
   19.23 +compile_rules() {
   19.24 +	install -Dm644 markdown.lua $install/usr/share/lua/common/markdown.lua
   19.25 +
   19.26 +	cook_pick_docs README.md
   19.27 +}
   19.28 +
   19.29 +testsuite() {
   19.30 +	action 'Testing...'
   19.31 +	lua53 ./markdown-tests.lua
   19.32 +	status
   19.33 +}
    20.1 --- a/luabitop/receipt	Wed Jan 30 23:34:32 2019 +0200
    20.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.3 @@ -1,27 +0,0 @@
    20.4 -# SliTaz package receipt v2.
    20.5 -
    20.6 -PACKAGE="luabitop"
    20.7 -VERSION="1.0.2"
    20.8 -CATEGORY="system-tools"
    20.9 -SHORT_DESC="Bitwise operations on numbers"
   20.10 -MAINTAINER="al.bobylev@gmail.com"
   20.11 -LICENSE="MIT"
   20.12 -WEB_SITE="https://bitop.luajit.org/"
   20.13 -REPOLOGY="lua:bitop"
   20.14 -
   20.15 -TARBALL="LuaBitOp-$VERSION.tar.gz"
   20.16 -WGET_URL="https://bitop.luajit.org/download/$TARBALL"
   20.17 -
   20.18 -BUILD_DEPENDS="lua5.1-dev"
   20.19 -
   20.20 -compile_rules() {
   20.21 -	make \
   20.22 -		INCLUDES=' -I/usr/include/lua/5.1' \
   20.23 -		LUA='lua5.1' &&
   20.24 -	install -Dm755 bit.so "$install/usr/lib/lua/5.1/bit.so"
   20.25 -}
   20.26 -
   20.27 -genpkg_rules() {
   20.28 -	copy @std
   20.29 -	DEPENDS="lua5.1"
   20.30 -}
    21.1 --- a/luaexpat/receipt	Wed Jan 30 23:34:32 2019 +0200
    21.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.3 @@ -1,25 +0,0 @@
    21.4 -# SliTaz package receipt v2.
    21.5 -
    21.6 -PACKAGE="luaexpat"
    21.7 -VERSION="1.3.0"
    21.8 -CATEGORY="system-tools"
    21.9 -SHORT_DESC="SAX XML parser based on the Expat library"
   21.10 -MAINTAINER="al.bobylev@gmail.com"
   21.11 -LICENSE="MIT"
   21.12 -WEB_SITE="http://matthewwild.co.uk/projects/luaexpat/"
   21.13 -REPOLOGY="lua:expat"
   21.14 -
   21.15 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   21.16 -WGET_URL="http://matthewwild.co.uk/projects/luaexpat/$TARBALL"
   21.17 -
   21.18 -BUILD_DEPENDS="lua5.1-dev expat-dev"
   21.19 -
   21.20 -compile_rules() {
   21.21 -	make LUA_V=5.1 LUA_INC=' -I/usr/include/lua/5.1' &&
   21.22 -	make LUA_V=5.1 DESTDIR="$install" install
   21.23 -}
   21.24 -
   21.25 -genpkg_rules() {
   21.26 -	copy @std
   21.27 -	DEPENDS="lua5.1 expat"
   21.28 -}
    22.1 --- a/luafilesystem/receipt	Wed Jan 30 23:34:32 2019 +0200
    22.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.3 @@ -1,32 +0,0 @@
    22.4 -# SliTaz package receipt v2.
    22.5 -
    22.6 -PACKAGE="luafilesystem"
    22.7 -VERSION="1.6.3"
    22.8 -CATEGORY="libdevel"
    22.9 -SHORT_DESC="File system library for the Lua programming language"
   22.10 -MAINTAINER="pascal.bellard@slitaz.org"
   22.11 -LICENSE="MIT"
   22.12 -WEB_SITE="http://keplerproject.github.io/luafilesystem/"
   22.13 -
   22.14 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   22.15 -WGET_URL="https://github.com/keplerproject/$PACKAGE/archive/v${VERSION//./_}.tar.gz"
   22.16 -
   22.17 -BUILD_DEPENDS="lua-dev"
   22.18 -
   22.19 -compile_rules() {
   22.20 -	# Determine Lua version (i.e "5.3")
   22.21 -	luaver=$(grep 'V=' /usr/lib/pkgconfig/lua.pc | cut -d= -f2)
   22.22 -	# Fix prefix and install dir
   22.23 -	sed -i "s|^PREFIX=.*|PREFIX=/usr|; s|5.1|$luaver|" $src/config
   22.24 -	# Use DESTDIR
   22.25 -	sed -i "s|\$(LUA_LIBDIR)|\$(DESTDIR)&|" $src/Makefile
   22.26 -
   22.27 -	make &&
   22.28 -	make test &&
   22.29 -	make install
   22.30 -}
   22.31 -
   22.32 -genpkg_rules() {
   22.33 -	copy @std
   22.34 -	SUGGESTED="lua"
   22.35 -}
    23.1 --- a/luajson/receipt	Wed Jan 30 23:34:32 2019 +0200
    23.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.3 @@ -1,29 +0,0 @@
    23.4 -# SliTaz package receipt v2.
    23.5 -
    23.6 -PACKAGE="luajson"
    23.7 -VERSION="1.3.4"
    23.8 -CATEGORY="system-tools"
    23.9 -SHORT_DESC="JSON parser/encoder for Lua"
   23.10 -MAINTAINER="al.bobylev@gmail.com"
   23.11 -LICENSE="MIT"
   23.12 -WEB_SITE="https://github.com/harningt/luajson"
   23.13 -REPOLOGY="lua:json"
   23.14 -
   23.15 -TARBALL="$PACKAGE-$VERSION.tar.gz"
   23.16 -WGET_URL="https://github.com/harningt/luajson/archive/$VERSION.tar.gz"
   23.17 -
   23.18 -compile_rules() {
   23.19 -	make \
   23.20 -		PREFIX=/usr \
   23.21 -		DESTDIR=$install \
   23.22 -		INSTALL_LMOD='$(INSTALL_TOP)/share/lua/5.1' \
   23.23 -		INSTALL_CMOD='$(INSTALL_TOP)/lib/lua/5.1' \
   23.24 -		install || return 1
   23.25 -
   23.26 -	chmod -R g-w $install # 664 -> 644
   23.27 -}
   23.28 -
   23.29 -genpkg_rules() {
   23.30 -	copy @std
   23.31 -	DEPENDS="lua5.1 lualpeg"
   23.32 -}
    24.1 --- a/lualpeg/receipt	Wed Jan 30 23:34:32 2019 +0200
    24.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.3 @@ -1,29 +0,0 @@
    24.4 -# SliTaz package receipt v2.
    24.5 -
    24.6 -PACKAGE="lualpeg"
    24.7 -VERSION="1.0.1"
    24.8 -CATEGORY="system-tools"
    24.9 -SHORT_DESC="Pattern-matching library for Lua"
   24.10 -MAINTAINER="al.bobylev@gmail.com"
   24.11 -LICENSE="MIT"
   24.12 -WEB_SITE="http://www.inf.puc-rio.br/~roberto/lpeg/"
   24.13 -REPOLOGY="lua:lpeg"
   24.14 -
   24.15 -TARBALL="lpeg-$VERSION.tar.gz"
   24.16 -WGET_URL="http://www.inf.puc-rio.br/~roberto/lpeg/$TARBALL"
   24.17 -
   24.18 -BUILD_DEPENDS="lua5.1-dev"
   24.19 -
   24.20 -compile_rules() {
   24.21 -	sed -i 's|^CFLAGS =|CFLAGS +=|; s|^COPT =|# COPT =|' makefile
   24.22 -
   24.23 -	make LUADIR=/usr/include/lua/5.1 || return 1
   24.24 -
   24.25 -	install -Dm755 lpeg.so $install/usr/lib/lua/5.1/lpeg.so
   24.26 -	install -Dm644 re.lua  $install/usr/share/lua/5.1/re.lua
   24.27 -}
   24.28 -
   24.29 -genpkg_rules() {
   24.30 -	copy @std
   24.31 -	DEPENDS="lua5.1"
   24.32 -}
    25.1 --- a/prosody/receipt	Wed Jan 30 23:34:32 2019 +0200
    25.2 +++ b/prosody/receipt	Thu Jan 31 00:34:43 2019 +0200
    25.3 @@ -11,8 +11,8 @@
    25.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
    25.5  WGET_URL="$WEB_SITE/downloads/source/$TARBALL"
    25.6  
    25.7 -BUILD_DEPENDS="lua5.1-dev libidn-dev openssl-dev luaexpat luasocket \
    25.8 -luafilesystem libidn-dev libcrypto"
    25.9 +BUILD_DEPENDS="lua5.1-dev libidn-dev openssl-dev lua53-expat luasocket \
   25.10 +lua53-filesystem libidn-dev libcrypto"
   25.11  
   25.12  compile_rules() {
   25.13  	./configure \
   25.14 @@ -22,14 +22,14 @@
   25.15  		--linker=${HOST_SYSTEM}-gcc \
   25.16  		--with-lua=/usr \
   25.17  		--with-lua-lib=/usr/lib \
   25.18 -		--runwith=lua5.1 \
   25.19 -		--with-lua-include=/usr/include/lua/5.1 &&
   25.20 +		--runwith=lua53 \
   25.21 +		--with-lua-include=/usr/include/lua/5.3 &&
   25.22  	make &&
   25.23  	make DESTDIR=$install install
   25.24  }
   25.25  
   25.26  genpkg_rules() {
   25.27  	copy @std
   25.28 -	DEPENDS="lua5.1 libidn openssl luaexpat luasocket luafilesystem libidn \
   25.29 +	DEPENDS="lua5.1 libidn openssl lua53-expat luasocket lua53-filesystem libidn \
   25.30  	libcrypto"
   25.31  }