wok annotate luasocket/receipt @ rev 21534
consolekit2 modified BUILD_DEPENDS
author | Hans-G?nter Theisgen |
---|---|
date | Sun May 05 11:13:36 2019 +0100 (2019-05-05) |
parents | 02bedd0cabb7 |
children | ede1d184d5c5 |
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" |
pascal@15309 | 8 LICENSE="MIT" |
rocky@10879 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rocky@10879 | 10 WEB_SITE="http://w3.impa.br/~diego/software/luasocket/home.html" |
rocky@10879 | 11 WGET_URL="http://luaforge.net/frs/download.php/2664/$TARBALL" |
rocky@10879 | 12 |
pascal@15347 | 13 DEPENDS="lua5.1" |
pascal@15347 | 14 BUILD_DEPENDS="lua5.1-dev" |
pascal@15309 | 15 |
rocky@10879 | 16 # Rules to configure and make the package. |
rocky@10879 | 17 compile_rules() |
rocky@10879 | 18 { |
rocky@10879 | 19 echo $src |
rocky@10879 | 20 cd $src |
rocky@10879 | 21 while read file; do |
rocky@10879 | 22 [ -f done.$file ] && continue |
rocky@10879 | 23 echo "Apply $file..." |
rocky@10879 | 24 patch -p1 < $stuff/$file || return 1 |
rocky@10879 | 25 touch done.$file |
rocky@10879 | 26 done <<EOT |
rocky@10879 | 27 patch.diff |
rocky@10879 | 28 EOT |
pascal@15347 | 29 make CFLAGS="$CFLAGS -I/usr/include/lua/5.1" && make DESTDIR=$DESTDIR install |
rocky@10879 | 30 } |
rocky@10879 | 31 |
rocky@10879 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
rocky@10879 | 33 genpkg_rules() |
rocky@10879 | 34 { |
rocky@10879 | 35 mkdir -p $fs/usr/share |
pascal@15309 | 36 cp -a $install/usr/lib $fs/usr |
pascal@15309 | 37 cp -a $install/usr/share/lua $fs/usr/share |
rocky@10879 | 38 } |