wok-next annotate slitaz-toolchain/receipt @ rev 20978

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