wok-6.x annotate luasocket/receipt @ rev 24822

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