wok-next annotate 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 |
rev | line source |
---|---|
al@19765 | 1 # SliTaz package receipt v2. |
pankso@16 | 2 |
pankso@16 | 3 PACKAGE="slitaz-toolchain" |
al@20443 | 4 VERSION="20180210" |
pankso@211 | 5 CATEGORY="meta" |
al@19765 | 6 SHORT_DESC="SliTaz meta package to rebuild or install current toolchain" |
pankso@16 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15593 | 8 LICENSE="GPL2" |
pankso@9717 | 9 WEB_SITE="http://www.slitaz.org/" |
pankso@9717 | 10 |
pankso@9717 | 11 # The goal here is to build and install SliTaz toolchain. We build the toolchain |
pankso@9717 | 12 # from SliTaz packages, on SliTaz and for SliTaz so in case of new and important |
pankso@9717 | 13 # toolchain upgrade we must build Binutils a first time, then GCC so it use the |
pankso@9717 | 14 # new Binutils. After we cook Glibc and then rebuild Binutils + GCC a second |
pankso@9717 | 15 # time so they are linked with the new main GNU libc. We usually also due a |
pankso@9717 | 16 # bootstrap by recooking slitaz-toolchain a second time so we are sure it can |
pankso@9717 | 17 # rebuild itself. |
pankso@9717 | 18 # |
pankso@9717 | 19 # SliTaz does one big toolchain by year just after the stable release, any change |
pankso@9717 | 20 # here or in the toolchain packages version must be discuss on the mailing list. |
pankso@9717 | 21 |
al@19765 | 22 ver() { grep ^VERSION $WOK/$1/receipt | cut -d '"' -f2; } |
al@19765 | 23 |
al@20443 | 24 compile_rules() { |
al@20443 | 25 echo 'Please use `cooker task up-toolchain`.' |
pankso@16 | 26 |
al@19765 | 27 mkdir -p $install/usr/share/doc/slitaz |
al@19765 | 28 cat > $install/usr/share/doc/slitaz/toolchain.txt <<EOT |
pankso@9717 | 29 SliTaz GNU/Linux toolchain |
pankso@9717 | 30 ================================================================================ |
pankso@10036 | 31 |
al@19765 | 32 Build date : $(date "+%F") |
pankso@10097 | 33 Architecture : $ARCH |
pankso@10035 | 34 Build system : $BUILD_SYSTEM |
pankso@10035 | 35 Host system : $HOST_SYSTEM |
pankso@10035 | 36 |
pankso@9717 | 37 Packages: |
pankso@9717 | 38 |
al@19765 | 39 * Binutils $(ver binutils) |
al@20443 | 40 * Linux $(ver linux) |
al@19765 | 41 * GCC $(ver gcc) |
al@19765 | 42 * Glibc $(ver glibc) |
pankso@9717 | 43 |
pankso@10097 | 44 Toolchain documentation: http://doc.slitaz.org/en:cookbook:toolchain |
pankso@10036 | 45 |
pankso@9717 | 46 ================================================================================ |
pankso@9717 | 47 |
pankso@9717 | 48 EOT |
pankso@16 | 49 } |
al@19765 | 50 |
al@20443 | 51 genpkg_rules() { |
al@19765 | 52 copy @std |
al@19765 | 53 DEPENDS="binutils linux-api-headers glibc-dev gcc make elfkickers" |
al@19765 | 54 } |