wok rev 23917

created recipes for lua-ffi and lua-posix
author Hans-G?nter Theisgen
date Wed Aug 19 09:11:10 2020 +0100 (6 months ago)
parents 44db1b779095
children 17bb3a5bf500
files lua-ffi/description.txt lua-ffi/receipt lua-posix/description.txt lua-posix/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lua-ffi/description.txt	Wed Aug 19 09:11:10 2020 +0100
     1.3 @@ -0,0 +1,5 @@
     1.4 +This is a library for calling C functions and manipulating C types from lua.
     1.5 +It is designed to be interface compatible with the FFI library in luajit
     1.6 +(see http://luajit.org/ext_ffi.html).
     1.7 +It can parse C function declarations and struct definitions that have been
     1.8 +directly copied out of C header files and into lua source as a string.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/lua-ffi/receipt	Wed Aug 19 09:11:10 2020 +0100
     2.3 @@ -0,0 +1,35 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="lua-ffi"
     2.7 +VERSION="1.0"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="Standalone ffi library for Lua."
    2.10 +MAINTAINER="maintainer@slitaz.org"
    2.11 +LICENSE="MIT"
    2.12 +WEB_SITE="https://github.com/jmckaskill/luaffi/"
    2.13 +
    2.14 +SOURCE="luaffi"
    2.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.16 +WGET_URL="${WEB_SITE}archive/$VERSION-work1.tar.gz"
    2.17 +
    2.18 +BUILD_DEPENDS="lua-dev"
    2.19 +
    2.20 +#HOST_ARCH="i486 arm"
    2.21 +
    2.22 +# Rules to configure and make the package.
    2.23 +compile_rules()
    2.24 +{
    2.25 +	# suitable for lua 5.2
    2.26 +	# package for lua 5.1 should be named lua5.1-ffi
    2.27 +	sed -i 's|lua5.1|lua5.2|'	Makefile
    2.28 +
    2.29 +	make &&
    2.30 +	make test
    2.31 +}
    2.32 +
    2.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.34 +genpkg_rules()
    2.35 +{
    2.36 +	mkdir -p $fs/usr/lib/lua/5.2
    2.37 +	cp -a $src/ffi.so	$fs/usr/lib/lua/5.2
    2.38 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/lua-posix/description.txt	Wed Aug 19 09:11:10 2020 +0100
     3.3 @@ -0,0 +1,5 @@
     3.4 +This is a POSIX binding for Lua 5.2;
     3.5 +like most libraries it simply binds to C APIs on the underlying system,
     3.6 +so it won't work on non-POSIX systems.
     3.7 +However, it does try to detect the level of POSIX conformance of the
     3.8 +underlying system and bind only available APIs.
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/lua-posix/receipt	Wed Aug 19 09:11:10 2020 +0100
     4.3 @@ -0,0 +1,32 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="lua-posix"
     4.7 +VERSION="35.0"
     4.8 +CATEGORY="development"
     4.9 +SHORT_DESC="POSIX Library for the Lua Programming Language."
    4.10 +MAINTAINER="maintainer@slitaz.org"
    4.11 +LICENSE="MIT"
    4.12 +WEB_SITE="https://github.com/luaposix/luaposix/"
    4.13 +
    4.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    4.15 +WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz"
    4.16 +
    4.17 +SUGGESTED="lua"
    4.18 +BUILD_DEPENDS="lua-dev"
    4.19 +
    4.20 +# Rules to configure and make the package.
    4.21 +compile_rules()
    4.22 +{
    4.23 +	export	USER=$VERSION
    4.24 +	build-aux/luke
    4.25 +}
    4.26 +
    4.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.28 +genpkg_rules()
    4.29 +{
    4.30 +	# lua-dev is version 5.2
    4.31 +	mkdir -p $fs/usr/lib/lua/5.2
    4.32 +
    4.33 +	cp -a $src/linux/posix	$fs/usr/lib/lua/5.2
    4.34 +	cp -a $src/lib/posix	$fs/usr/lib/lua/5.2
    4.35 +}