wok-next view lua-socket/receipt @ rev 21715

Up cookutils (1146)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 28 07:53:22 2020 +0000 (2020-07-28)
parents
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lua-socket"
4 VERSION="3.0-rc1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Network support for the Lua language"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/diegonehab/luasocket"
10 REPOLOGY="lua:socket"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/diegonehab/luasocket/archive/v$VERSION.tar.gz"
14 TARBALL_SHA1="aff9122b26c01487c06a32133df78c1506af350f"
16 BUILD_DEPENDS="lua51-dev lua52-dev lua53-dev"
17 SPLIT="lua51-socket:5.1 lua52-socket:5.2 lua53-socket:5.3"
19 COPY_lua51_socket="@std"
20 COPY_lua52_socket="@std"
21 COPY_lua53_socket="@std"
23 DEPENDS_lua51_socket="lua51"
24 DEPENDS_lua52_socket="lua52"
25 DEPENDS_lua53_socket="lua53"
27 CAT_std="nopack|"
28 CAT_lua51_socket="system-tools|for Lua 5.1"
29 CAT_lua52_socket="system-tools|for Lua 5.2"
30 CAT_lua53_socket="system-tools|for Lua 5.3"
32 compile_rules() {
33 if [ -z "$SET" ]; then
34 cook_pick_docs $src/doc/*
35 return
36 fi
38 case $ARCH in
39 x86_64) CFLAGS="$CFLAGS -fPIC";;
40 esac
42 # get variables from .pc file
43 pc="lua${SET/./}"
44 includedir=$(pkg-config --variable=includedir $pc)
45 install_lmod=$(pkg-config --variable=INSTALL_LMOD $pc)
46 install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
48 make \
49 LUAV="$SET" \
50 prefix=/usr \
51 LUAINC_linux=$includedir \
52 &&
53 make \
54 prefix=/usr \
55 INSTALL_TOP_SHARE=$install$install_lmod \
56 INSTALL_TOP_LIB=$install$install_cmod \
57 DESTDIR=$install \
58 install
59 }