wok rev 13502

Up: lua (5.2.1)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Oct 13 14:47:01 2012 +0200 (2012-10-13)
parents 0ad6b17c537c
children db8a7912b17a
files lua-dev/receipt lua/receipt
line diff
     1.1 --- a/lua-dev/receipt	Sat Oct 13 11:49:15 2012 +0200
     1.2 +++ b/lua-dev/receipt	Sat Oct 13 14:47:01 2012 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="lua-dev"
     1.7 -VERSION="5.1.4"
     1.8 +VERSION="5.2.1"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Lua devel files."
    1.11  WANTED="lua"
    1.12 @@ -14,5 +14,5 @@
    1.13  	mkdir -p $fs/usr/lib/pkgconfig $fs/usr
    1.14  	cp -a $install/usr/include $fs/usr
    1.15  	cp -a $install/usr/lib/liblua.a $fs/usr/lib
    1.16 -	cp -a $src/etc/lua.pc $fs/usr/lib/pkgconfig
    1.17 +	cp -a $src/lua.pc $fs/usr/lib/pkgconfig
    1.18  }
     2.1 --- a/lua/receipt	Sat Oct 13 11:49:15 2012 +0200
     2.2 +++ b/lua/receipt	Sat Oct 13 14:47:01 2012 +0200
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="lua"
     2.7 -VERSION="5.1.4"
     2.8 +VERSION="5.2.1"
     2.9  CATEGORY="development"
    2.10  SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
    2.11  DEPENDS="readline ncurses"
    2.12 @@ -15,10 +15,12 @@
    2.13  compile_rules()
    2.14  {
    2.15  	cd $src
    2.16 -	sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
    2.17  	sed -i "s#/usr/local/#/usr/#" src/luaconf.h
    2.18  	sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
    2.19  	make linux &&
    2.20 +	# lua.pc
    2.21 +	make pc > lua.pc &&
    2.22 +	sed -i "s#/local##g" lua.pc &&
    2.23  	make install \
    2.24  		INSTALL_TOP=$DESTDIR/usr \
    2.25  		INSTALL_MAN=$DESTDIR/usr/share/man/man1