wok-6.x rev 13632

Add lua5.1 (needed to build edje and update e17 - All files are separate in a 5.1 subdir
author Christophe Lincoln <pankso@slitaz.org>
date Thu Nov 15 20:34:12 2012 +0100 (2012-11-15)
parents b0f28f14f48e
children 3dc5fc75c81e
files lua5.1-dev/receipt lua5.1/receipt lua5.1/stuff/lua5.1-paths.patch lua5.1/stuff/lua5.1.desktop lua5.1/stuff/lua5.1.png
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lua5.1-dev/receipt	Thu Nov 15 20:34:12 2012 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="lua5.1-dev"
     1.7 +VERSION="5.1.4"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Lua devel files."
    1.10 +WANTED="lua5.1"
    1.11 +MAINTAINER="pankso@slitaz.org"
    1.12 +WEB_SITE="http://www.lua.org/"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/usr/lib/pkgconfig $fs/usr/lib/lua/5.1
    1.18 +	cp -a $install/usr/include $fs/usr
    1.19 +	cp -a $install/usr/lib/lua/5.1/liblua.a $fs/usr/lib/lua/5.1
    1.20 +	cp -a $src/etc/lua.pc $fs/usr/lib/pkgconfig/lua5.1.pc
    1.21 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/lua5.1/receipt	Thu Nov 15 20:34:12 2012 +0100
     2.3 @@ -0,0 +1,38 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="lua5.1"
     2.7 +VERSION="5.1.4"
     2.8 +SOURCE="lua"
     2.9 +CATEGORY="development"
    2.10 +SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
    2.11 +DEPENDS="readline ncurses"
    2.12 +BUILD_DEPENDS="readline-dev"
    2.13 +MAINTAINER="pankso@slitaz.org"
    2.14 +TARBALL="$SOURCE-$VERSION.tar.gz"
    2.15 +WEB_SITE="http://www.lua.org/"
    2.16 +WGET_URL="http://www.lua.org/ftp/$TARBALL"
    2.17 +
    2.18 +# Rules to configure and make the package.
    2.19 +compile_rules()
    2.20 +{
    2.21 +	cd $src
    2.22 +	patch -p0 < $stuff/lua5.1-paths.patch || exit 1
    2.23 +	sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
    2.24 +	sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc
    2.25 +	sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc
    2.26 +	sed -i "s#/usr/local/#/usr/#" src/luaconf.h
    2.27 +	sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h
    2.28 +	sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
    2.29 +	make linux &&
    2.30 +	make install \
    2.31 +		INSTALL_TOP=$DESTDIR/usr \
    2.32 +		INSTALL_MAN=$DESTDIR/usr/share/man/man1
    2.33 +}
    2.34 +
    2.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.36 +genpkg_rules()
    2.37 +{
    2.38 +	mkdir -p $fs/usr/bin $fs/usr/lib/lua/5.1
    2.39 +	cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
    2.40 +	cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
    2.41 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/lua5.1/stuff/lua5.1-paths.patch	Thu Nov 15 20:34:12 2012 +0100
     3.3 @@ -0,0 +1,22 @@
     3.4 +--- Makefile
     3.5 ++++ stuff/Makefile
     3.6 +@@ -9,15 +9,15 @@
     3.7 + 
     3.8 + # Where to install. The installation starts in the src and doc directories,
     3.9 + # so take care if INSTALL_TOP is not an absolute path.
    3.10 +-INSTALL_TOP= /usr/local
    3.11 ++INSTALL_TOP= /usr
    3.12 + INSTALL_BIN= $(INSTALL_TOP)/bin
    3.13 +-INSTALL_INC= $(INSTALL_TOP)/include
    3.14 +-INSTALL_LIB= $(INSTALL_TOP)/lib
    3.15 ++INSTALL_INC= $(INSTALL_TOP)/include/lua/$V
    3.16 ++INSTALL_LIB= $(INSTALL_TOP)/lib/lua/$V
    3.17 + INSTALL_MAN= $(INSTALL_TOP)/man/man1
    3.18 + #
    3.19 + # You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
    3.20 + # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
    3.21 +-INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
    3.22 ++INSTALL_LMOD= $(INSTALL_TOP)/lib/lua/$V
    3.23 + INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
    3.24 + 
    3.25 + # How to install. If your install program does not support "-p", then you
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/lua5.1/stuff/lua5.1.desktop	Thu Nov 15 20:34:12 2012 +0100
     4.3 @@ -0,0 +1,8 @@
     4.4 +[Desktop Entry]
     4.5 +Encoding=UTF-8
     4.6 +Name=Lua5.1 interpreter
     4.7 +Terminal=false
     4.8 +Exec=xterm -e lua5.1
     4.9 +Icon=lua5.1
    4.10 +Type=Application
    4.11 +Categories=Development;
     5.1 Binary file lua5.1/stuff/lua5.1.png has changed