wok diff lua5.1/receipt @ rev 14297

Up: embryo-dev (1.7.5)
author Dominique Corbex <domcox@slitaz.org>
date Sun Apr 07 10:08:46 2013 +0200 (2013-04-07)
parents
children 2a5cc8208d36
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lua5.1/receipt	Sun Apr 07 10:08:46 2013 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="lua5.1"
     1.7 +VERSION="5.1.4"
     1.8 +SOURCE="lua"
     1.9 +CATEGORY="development"
    1.10 +SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
    1.11 +DEPENDS="readline ncurses"
    1.12 +BUILD_DEPENDS="readline-dev"
    1.13 +MAINTAINER="pankso@slitaz.org"
    1.14 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.15 +WEB_SITE="http://www.lua.org/"
    1.16 +WGET_URL="http://www.lua.org/ftp/$TARBALL"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	patch -p0 < $stuff/lua5.1-paths.patch || exit 1
    1.23 +	sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
    1.24 +	sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc
    1.25 +	sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc
    1.26 +	sed -i "s#/usr/local/#/usr/#" src/luaconf.h
    1.27 +	sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h
    1.28 +	sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
    1.29 +	make linux &&
    1.30 +	make install \
    1.31 +		INSTALL_TOP=$DESTDIR/usr \
    1.32 +		INSTALL_MAN=$DESTDIR/usr/share/man/man1
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +	mkdir -p $fs/usr/bin $fs/usr/lib/lua/5.1
    1.39 +	cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
    1.40 +	cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
    1.41 +}