# HG changeset patch # User Christophe Lincoln # Date 1350132421 -7200 # Node ID 0769826c3fc41bb72002f62b1d60762216dbb596 # Parent 0ad6b17c537cc4be041238be12be4799d7993def Up: lua (5.2.1) diff -r 0ad6b17c537c -r 0769826c3fc4 lua-dev/receipt --- a/lua-dev/receipt Sat Oct 13 11:49:15 2012 +0200 +++ b/lua-dev/receipt Sat Oct 13 14:47:01 2012 +0200 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="lua-dev" -VERSION="5.1.4" +VERSION="5.2.1" CATEGORY="development" SHORT_DESC="Lua devel files." WANTED="lua" @@ -14,5 +14,5 @@ mkdir -p $fs/usr/lib/pkgconfig $fs/usr cp -a $install/usr/include $fs/usr cp -a $install/usr/lib/liblua.a $fs/usr/lib - cp -a $src/etc/lua.pc $fs/usr/lib/pkgconfig + cp -a $src/lua.pc $fs/usr/lib/pkgconfig } diff -r 0ad6b17c537c -r 0769826c3fc4 lua/receipt --- a/lua/receipt Sat Oct 13 11:49:15 2012 +0200 +++ b/lua/receipt Sat Oct 13 14:47:01 2012 +0200 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="lua" -VERSION="5.1.4" +VERSION="5.2.1" CATEGORY="development" SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language." DEPENDS="readline ncurses" @@ -15,10 +15,12 @@ compile_rules() { cd $src - sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc sed -i "s#/usr/local/#/usr/#" src/luaconf.h sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile make linux && + # lua.pc + make pc > lua.pc && + sed -i "s#/local##g" lua.pc && make install \ INSTALL_TOP=$DESTDIR/usr \ INSTALL_MAN=$DESTDIR/usr/share/man/man1