wok-6.x annotate luasocket/receipt @ rev 13746
Up: urxvt (9.16)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Mon Dec 31 13:28:06 2012 +0300 (2012-12-31) |
parents | |
children | 02bedd0cabb7 |
rev | line source |
---|---|
rocky@10879 | 1 # SliTaz package receipt. |
rocky@10879 | 2 |
rocky@10879 | 3 PACKAGE="luasocket" |
rocky@10879 | 4 VERSION="2.0.2" |
rocky@10879 | 5 CATEGORY="development" |
rocky@10879 | 6 SHORT_DESC="Network support for the Lua language." |
rocky@10879 | 7 MAINTAINER="rocky@slitaz.org" |
rocky@10879 | 8 DEPENDS="lua" |
rocky@10879 | 9 BUILD_DEPENDS="lua-dev" |
rocky@10879 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rocky@10879 | 11 WEB_SITE="http://w3.impa.br/~diego/software/luasocket/home.html" |
rocky@10879 | 12 WGET_URL="http://luaforge.net/frs/download.php/2664/$TARBALL" |
rocky@10879 | 13 |
rocky@10879 | 14 # Rules to configure and make the package. |
rocky@10879 | 15 compile_rules() |
rocky@10879 | 16 { |
rocky@10879 | 17 echo $src |
rocky@10879 | 18 cd $src |
rocky@10879 | 19 while read file; do |
rocky@10879 | 20 [ -f done.$file ] && continue |
rocky@10879 | 21 echo "Apply $file..." |
rocky@10879 | 22 patch -p1 < $stuff/$file || return 1 |
rocky@10879 | 23 touch done.$file |
rocky@10879 | 24 done <<EOT |
rocky@10879 | 25 patch.diff |
rocky@10879 | 26 EOT |
rocky@10879 | 27 make && make DESTDIR=$PWD/_pkg install |
rocky@10879 | 28 } |
rocky@10879 | 29 |
rocky@10879 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
rocky@10879 | 31 genpkg_rules() |
rocky@10879 | 32 { |
rocky@10879 | 33 mkdir -p $fs/usr/share |
rocky@10879 | 34 cp -a $_pkg/usr/lib $fs/usr |
rocky@10879 | 35 cp -a $_pkg/usr/share/lua $fs/usr/share |
rocky@10879 | 36 } |