wok-next diff lua-socket/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lua-socket/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -0,0 +1,59 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +PACKAGE="lua-socket"
     1.7 +VERSION="3.0-rc1"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Network support for the Lua language"
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="https://github.com/diegonehab/luasocket"
    1.13 +REPOLOGY="lua:socket"
    1.14 +
    1.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 +WGET_URL="https://github.com/diegonehab/luasocket/archive/v$VERSION.tar.gz"
    1.17 +TARBALL_SHA1="aff9122b26c01487c06a32133df78c1506af350f"
    1.18 +
    1.19 +BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev"
    1.20 +SPLIT="lua51-socket:5.1 lua52-socket:5.2 lua53-socket:5.3"
    1.21 +
    1.22 +COPY_lua51_socket="@std"
    1.23 +COPY_lua52_socket="@std"
    1.24 +COPY_lua53_socket="@std"
    1.25 +
    1.26 +DEPENDS_lua51_socket="lua51"
    1.27 +DEPENDS_lua52_socket="lua52"
    1.28 +DEPENDS_lua53_socket="lua53"
    1.29 +
    1.30 +CAT_std="nopack|"
    1.31 +CAT_lua51_socket="system-tools|for Lua 5.1"
    1.32 +CAT_lua52_socket="system-tools|for Lua 5.2"
    1.33 +CAT_lua53_socket="system-tools|for Lua 5.3"
    1.34 +
    1.35 +compile_rules() {
    1.36 +	if [ -z "$SET" ]; then
    1.37 +		cook_pick_docs $src/doc/*
    1.38 +		return
    1.39 +	fi
    1.40 +
    1.41 +	case $ARCH in
    1.42 +		x86_64) CFLAGS="$CFLAGS -fPIC";;
    1.43 +	esac
    1.44 +
    1.45 +	# get variables from .pc file
    1.46 +	pc="lua${SET/./}"
    1.47 +	includedir=$(pkg-config --variable=includedir $pc)
    1.48 +	install_lmod=$(pkg-config --variable=INSTALL_LMOD $pc)
    1.49 +	install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
    1.50 +
    1.51 +	make \
    1.52 +		LUAV="$SET" \
    1.53 +		prefix=/usr \
    1.54 +		LUAINC_linux=$includedir \
    1.55 +		&&
    1.56 +	make \
    1.57 +		prefix=/usr \
    1.58 +		INSTALL_TOP_SHARE=$install$install_lmod \
    1.59 +		INSTALL_TOP_LIB=$install$install_cmod \
    1.60 +		DESTDIR=$install \
    1.61 +		install
    1.62 +}