wok view luasocket/receipt @ rev 17906

syslinux: s/Dutch/Nederlands/ (thanks kubepc)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 05 11:03:04 2015 +0200 (2015-04-05)
parents 02bedd0cabb7
children ede1d184d5c5
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 }