wok rev 10879
Add: luasocket
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Fri Jun 24 09:26:42 2011 +0000 (2011-06-24) |
parents | f6e889e3c41f |
children | 09cf2cf94008 |
files | luasocket/receipt luasocket/stuff/patch.diff |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/luasocket/receipt Fri Jun 24 09:26:42 2011 +0000 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="luasocket" 1.7 +VERSION="2.0.2" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Network support for the Lua language." 1.10 +MAINTAINER="rocky@slitaz.org" 1.11 +DEPENDS="lua" 1.12 +BUILD_DEPENDS="lua-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://w3.impa.br/~diego/software/luasocket/home.html" 1.15 +WGET_URL="http://luaforge.net/frs/download.php/2664/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + echo $src 1.21 + cd $src 1.22 + while read file; do 1.23 + [ -f done.$file ] && continue 1.24 + echo "Apply $file..." 1.25 + patch -p1 < $stuff/$file || return 1 1.26 + touch done.$file 1.27 + done <<EOT 1.28 +patch.diff 1.29 +EOT 1.30 + make && make DESTDIR=$PWD/_pkg install 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/share 1.37 + cp -a $_pkg/usr/lib $fs/usr 1.38 + cp -a $_pkg/usr/share/lua $fs/usr/share 1.39 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/luasocket/stuff/patch.diff Fri Jun 24 09:26:42 2011 +0000 2.3 @@ -0,0 +1,14 @@ 2.4 +diff -wbBur luasocket-2.0.2/config luasocket-2.0.2.my/config 2.5 +--- luasocket-2.0.2/config 2007-10-15 08:21:05.000000000 +0400 2.6 ++++ luasocket-2.0.2.my/config 2007-10-15 12:22:16.000000000 +0400 2.7 +@@ -30,8 +30,8 @@ 2.8 + # 2.9 + #INSTALL_TOP_SHARE=/usr/local/share/lua/5.0 2.10 + #INSTALL_TOP_LIB=/usr/local/lib/lua/5.0 2.11 +-INSTALL_TOP_SHARE=/usr/local/share/lua/5.1 2.12 +-INSTALL_TOP_LIB=/usr/local/lib/lua/5.1 2.13 ++INSTALL_TOP_SHARE=$(DESTDIR)/usr/share/lua/5.1 2.14 ++INSTALL_TOP_LIB=$(DESTDIR)/usr/lib/lua/5.1 2.15 + 2.16 + INSTALL_DATA=cp 2.17 + INSTALL_EXEC=cp