wok-6.x view luasocket/receipt @ rev 24895

libgpod: libplist 2.x support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 08 11:37:28 2022 +0000 (2022-04-08)
parents ede1d184d5c5
children 00e3b45c063b
line source
1 # SliTaz package receipt.
3 PACKAGE="luasocket"
4 VERSION="2.0.2"
5 CATEGORY="development"
6 SHORT_DESC="Network support for the Lua language."
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://w3.impa.br/~diego/software/luasocket/home.html"
11 WGET_URL="http://luaforge.net/frs/download.php/2664/$TARBALL"
13 DEPENDS="lua5.1"
14 BUILD_DEPENDS="lua5.1-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/is *now *available/!d;s|.*version ||;s| is.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 echo $src
27 cd $src
28 while read file; do
29 [ -f done.$file ] && continue
30 echo "Apply $file..."
31 patch -p1 < $stuff/$file || return 1
32 touch done.$file
33 done <<EOT
34 patch.diff
35 EOT
36 make CFLAGS="$CFLAGS -I/usr/include/lua/5.1" && make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
43 cp -a $install/usr/lib $fs/usr
44 cp -a $install/usr/share/lua $fs/usr/share
45 }