wok view luasocket/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 28a7087bc745
children
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="https://github.com/lunarmodules/luasocket/archive/refs/tags/v$VERSION.tar.gz"
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 }