wok diff lua/receipt @ rev 19065
Take care on root in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 21 09:45:48 2016 +0200 (2016-04-21) |
parents | 2a5cc8208d36 |
children | 2514d4060d32 |
line diff
1.1 --- a/lua/receipt Sun Oct 20 22:08:25 2013 +0000 1.2 +++ b/lua/receipt Thu Apr 21 09:45:48 2016 +0200 1.3 @@ -9,6 +9,7 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.5 WEB_SITE="http://www.lua.org/" 1.6 WGET_URL="http://www.lua.org/ftp/$TARBALL" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 DEPENDS="readline ncurses" 1.10 BUILD_DEPENDS="readline-dev" 1.11 @@ -16,10 +17,14 @@ 1.12 # Rules to configure and make the package. 1.13 compile_rules() 1.14 { 1.15 - cd $src 1.16 sed -i "s#/usr/local/#/usr/#" src/luaconf.h 1.17 - sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile 1.18 - make linux && 1.19 + case "$ARCH" in 1.20 + arm) 1.21 + make CC=${HOST_SYSTEM}-gcc posix ;; 1.22 + i486) 1.23 + sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile 1.24 + make linux ;; 1.25 + esac && 1.26 # lua.pc 1.27 make pc > lua.pc && 1.28 sed -i "s#/local##g" lua.pc && 1.29 @@ -34,3 +39,8 @@ 1.30 mkdir -p $fs/usr/bin 1.31 cp -a $install/usr/bin $fs/usr 1.32 } 1.33 + 1.34 +testsuite() 1.35 +{ 1.36 + readelf -h $install/usr/bin/lua 1.37 +}