wok-next diff lua/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | c4e53a39395a |
children | b1a1deb20f42 |
line diff
1.1 --- a/lua/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/lua/receipt Fri Apr 27 15:12:17 2018 +0300 1.3 @@ -14,17 +14,19 @@ 1.4 BUILD_DEPENDS="readline-dev" 1.5 SPLIT="liblua lua-dev" 1.6 1.7 -# Rules to configure and make the package. 1.8 -compile_rules() 1.9 -{ 1.10 - sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h && 1.11 +compile_rules() { 1.12 + sed -i '/#define LUA_ROOT/ s:/usr/local/:/usr/:' src/luaconf.h 1.13 1.14 case "$ARCH" in 1.15 arm) 1.16 make CC=${HOST_SYSTEM}-gcc posix 1.17 ;; 1.18 i486) 1.19 - sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile 1.20 + sed -i "s|-O2|-Os -march=$ARCH|" src/Makefile 1.21 + make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux 1.22 + ;; 1.23 + x86_64) 1.24 + sed -i 's|-O2|-Os -march=nocona|' src/Makefile 1.25 make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux 1.26 ;; 1.27 esac && 1.28 @@ -34,13 +36,11 @@ 1.29 INSTALL_DATA="cp -d" \ 1.30 INSTALL_MAN=$DESTDIR/usr/share/man/man1 \ 1.31 TO_LIB="liblua.so liblua.so.${VERSION%.*} liblua.so.$VERSION" \ 1.32 - install && 1.33 + install || return 1 1.34 1.35 - docdir="$install/usr/share/doc/lua-$VERSION" && 1.36 - mkdir -p $docdir && 1.37 - cp -a doc/* $docdir && rm $docdir/*.1 && 1.38 + cook_pick_docs doc/* 1.39 1.40 - mkdir -p $install/usr/lib/pkgconfig && 1.41 + mkdir -p $install/usr/lib/pkgconfig 1.42 cp $stuff/lua.pc $install/usr/lib/pkgconfig 1.43 } 1.44 1.45 @@ -48,9 +48,7 @@ 1.46 readelf -h $install/usr/bin/lua 1.47 } 1.48 1.49 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.50 -genpkg_rules() 1.51 -{ 1.52 +genpkg_rules() { 1.53 case $PACKAGE in 1.54 lua) 1.55 copy bin/