wok-stable diff luasocket/receipt @ rev 11996

fusecloop: add description.txt
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 04 09:52:39 2012 +0100 (2012-03-04)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/luasocket/receipt	Sun Mar 04 09:52:39 2012 +0100
     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 +}