wok-next view luasocket/receipt @ rev 16478
Up xpaint + libXaw3dXft and add to ARM (would be nice to have a small paint tool in next R-Pi release
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 23 01:56:24 2014 +0200 (2014-04-23) |
parents | 02bedd0cabb7 |
children | d6378d455338 |
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="http://w3.impa.br/~diego/software/luasocket/home.html"
11 WGET_URL="http://luaforge.net/frs/download.php/2664/$TARBALL"
13 DEPENDS="lua5.1"
14 BUILD_DEPENDS="lua5.1-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 echo $src
20 cd $src
21 while read file; do
22 [ -f done.$file ] && continue
23 echo "Apply $file..."
24 patch -p1 < $stuff/$file || return 1
25 touch done.$file
26 done <<EOT
27 patch.diff
28 EOT
29 make CFLAGS="$CFLAGS -I/usr/include/lua/5.1" && make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share
36 cp -a $install/usr/lib $fs/usr
37 cp -a $install/usr/share/lua $fs/usr/share
38 }