wok-next diff slitaz-toolchain/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | 2f3aba6cc31e |
children | cd7906120828 |
line diff
1.1 --- a/slitaz-toolchain/receipt Mon Jun 12 11:39:09 2017 +0300 1.2 +++ b/slitaz-toolchain/receipt Tue Jun 05 17:27:09 2018 +0300 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="slitaz-toolchain" 1.7 -VERSION="6.0" 1.8 +VERSION="20180210" 1.9 CATEGORY="meta" 1.10 SHORT_DESC="SliTaz meta package to rebuild or install current toolchain" 1.11 MAINTAINER="pankso@slitaz.org" 1.12 @@ -21,48 +21,8 @@ 1.13 1.14 ver() { grep ^VERSION $WOK/$1/receipt | cut -d '"' -f2; } 1.15 1.16 -# Rules to configure and make the package. 1.17 -compile_rules() 1.18 -{ 1.19 - [ -x /usr/bin/cook ] || return 0 1.20 - 1.21 - tmplog=$LOGS/$PACKAGE.tmplog 1.22 - 1.23 - cat > $tmplog <<EOT 1.24 -Cook: $PACKAGE $VERSION 1.25 -$(separator) 1.26 -Cook toolchain : started $(date '+%F %R') 1.27 -Architecture : $ARCH 1.28 -Build system : $BUILD_SYSTEM 1.29 -Host system : $HOST_SYSTEM 1.30 -$(separator -) 1.31 -EOT 1.32 - 1.33 - echo "cook: Binutils first pass : $(date '+%F %R')" >> $tmplog 1.34 - cook binutils 1.35 - echo "cook: GCC first pass : $(date '+%F %R')" >> $tmplog 1.36 - cook gcc --first-pass 1.37 - echo "cook: Linux API headers : $(date '+%F %R')" >> $tmplog 1.38 - cook linux-api-headers 1.39 - echo "cook: Glibc : $(date '+%F %R')" >> $tmplog 1.40 - cook glibc 1.41 - echo "cook: Binutils final : $(date '+%F %R')" >> $tmplog 1.42 - cook binutils 1.43 - echo "cook: GCC final : $(date '+%F %R')" >> $tmplog 1.44 - cook gcc 1.45 - 1.46 - cat >> $tmplog <<EOT 1.47 -$(separator) 1.48 - 1.49 -GCC compiler information 1.50 -$(separator) 1.51 -$(gcc -v 2>&1 | sed 's|--|\n --|g') 1.52 -$(separator) 1.53 - 1.54 -EOT 1.55 - 1.56 - # All packages cooked got ther own log so we don't keep them. 1.57 - mv -f $tmplog $LOGS/$PACKAGE.log 1.58 +compile_rules() { 1.59 + echo 'Please use `cooker task up-toolchain`.' 1.60 1.61 mkdir -p $install/usr/share/doc/slitaz 1.62 cat > $install/usr/share/doc/slitaz/toolchain.txt <<EOT 1.63 @@ -77,7 +37,7 @@ 1.64 Packages: 1.65 1.66 * Binutils $(ver binutils) 1.67 - * Linux API headers $(ver linux-api-headers) 1.68 + * Linux $(ver linux) 1.69 * GCC $(ver gcc) 1.70 * Glibc $(ver glibc) 1.71 1.72 @@ -88,9 +48,7 @@ 1.73 EOT 1.74 } 1.75 1.76 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.77 -genpkg_rules() 1.78 -{ 1.79 +genpkg_rules() { 1.80 copy @std 1.81 DEPENDS="binutils linux-api-headers glibc-dev gcc make elfkickers" 1.82 }