wok-next diff lua/receipt @ rev 20358
Update libunwind, strace; pcmanfm-qt: update dependencies; shrink icu (less 2MB comparing to the *-full version); add awf.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 22 21:52:02 2017 +0200 (2017-11-22) |
parents | 0994d769f208 |
children | c4e53a39395a |
line diff
1.1 --- a/lua/receipt Wed Feb 22 03:43:01 2017 +0200 1.2 +++ b/lua/receipt Wed Nov 22 21:52:02 2017 +0200 1.3 @@ -1,9 +1,9 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="lua" 1.8 -VERSION="5.3.3" 1.9 +VERSION="5.3.4" 1.10 CATEGORY="development" 1.11 -SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language." 1.12 +SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language" 1.13 MAINTAINER="pankso@slitaz.org" 1.14 LICENSE="MIT" 1.15 WEB_SITE="https://www.lua.org/" 1.16 @@ -12,14 +12,13 @@ 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 WGET_URL="https://www.lua.org/ftp/$TARBALL" 1.19 1.20 -DEPENDS="readline ncurses" 1.21 BUILD_DEPENDS="readline-dev" 1.22 +SPLIT="liblua lua-dev" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 { 1.27 - patch -Np1 -i $stuff/lua-5.3.3-shared_library-1.patch 1.28 - sed -i '/#define LUA_ROOT/s|/usr/local/|/usr/|' src/luaconf.h 1.29 + sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h && 1.30 1.31 case "$ARCH" in 1.32 arm) 1.33 @@ -33,27 +32,37 @@ 1.34 1.35 make \ 1.36 INSTALL_TOP=$DESTDIR/usr \ 1.37 - TO_LIB="liblua.so liblua.so.${VERSION%.*} liblua.so.$VERSION" \ 1.38 INSTALL_DATA="cp -d" \ 1.39 INSTALL_MAN=$DESTDIR/usr/share/man/man1 \ 1.40 + TO_LIB="liblua.so liblua.so.${VERSION%.*} liblua.so.$VERSION" \ 1.41 install && 1.42 1.43 - mkdir -p $install/usr/share/doc/lua-$VERSION 1.44 - cp -a doc/* $install/usr/share/doc/lua-$VERSION 1.45 - rm $install/usr/share/doc/lua-$VERSION/*.1 1.46 + docdir="$install/usr/share/doc/lua-$VERSION" && 1.47 + mkdir -p $docdir && 1.48 + cp -a doc/* $docdir && rm $docdir/*.1 && 1.49 1.50 - mkdir -p $install/usr/lib/pkgconfig 1.51 + mkdir -p $install/usr/lib/pkgconfig && 1.52 cp $stuff/lua.pc $install/usr/lib/pkgconfig 1.53 } 1.54 1.55 +testsuite() { 1.56 + readelf -h $install/usr/bin/lua 1.57 +} 1.58 + 1.59 # Rules to gen a SliTaz package suitable for Tazpkg. 1.60 genpkg_rules() 1.61 { 1.62 - mkdir -p $fs/usr/bin 1.63 - cp -a $install/usr/bin $fs/usr 1.64 + case $PACKAGE in 1.65 + lua) 1.66 + copy bin/ 1.67 + DEPENDS="ncurses readline" 1.68 + ;; 1.69 + liblua) 1.70 + copy *.so* 1.71 + CAT="libs|library" 1.72 + ;; 1.73 + *-dev) 1.74 + copy @dev 1.75 + ;; 1.76 + esac 1.77 } 1.78 - 1.79 -testsuite() 1.80 -{ 1.81 - readelf -h $install/usr/bin/lua 1.82 -}