wok view luasocket/receipt @ rev 13899

qutim: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 19 15:58:06 2013 +0100 (2013-01-19)
parents
children 02bedd0cabb7
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 DEPENDS="lua"
9 BUILD_DEPENDS="lua-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://w3.impa.br/~diego/software/luasocket/home.html"
12 WGET_URL="http://luaforge.net/frs/download.php/2664/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 echo $src
18 cd $src
19 while read file; do
20 [ -f done.$file ] && continue
21 echo "Apply $file..."
22 patch -p1 < $stuff/$file || return 1
23 touch done.$file
24 done <<EOT
25 patch.diff
26 EOT
27 make && make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share
34 cp -a $_pkg/usr/lib $fs/usr
35 cp -a $_pkg/usr/share/lua $fs/usr/share
36 }