wok-next view slitaz-toolchain/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | cd7906120828 |
children | d03cdb2a688a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="slitaz-toolchain"
4 VERSION="20180210"
5 CATEGORY="meta"
6 SHORT_DESC="SliTaz meta package to rebuild or install current toolchain"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.slitaz.org/"
10 REPOLOGY="-"
12 # The goal here is to build and install SliTaz toolchain. We build the toolchain
13 # from SliTaz packages, on SliTaz and for SliTaz so in case of new and important
14 # toolchain upgrade we must build Binutils a first time, then GCC so it use the
15 # new Binutils. After we cook Glibc and then rebuild Binutils + GCC a second
16 # time so they are linked with the new main GNU libc. We usually also due a
17 # bootstrap by recooking slitaz-toolchain a second time so we are sure it can
18 # rebuild itself.
19 #
20 # SliTaz does one big toolchain by year just after the stable release, any change
21 # here or in the toolchain packages version must be discuss on the mailing list.
23 ver() { grep ^VERSION $WOK/$1/receipt | cut -d '"' -f2; }
25 compile_rules() {
26 echo 'Please use `cooker task up-toolchain`.'
28 mkdir -p $install/usr/share/doc/slitaz
29 cat > $install/usr/share/doc/slitaz/toolchain.txt <<EOT
30 SliTaz GNU/Linux toolchain
31 ================================================================================
33 Build date : $(date "+%F")
34 Architecture : $ARCH
35 Build system : $BUILD_SYSTEM
36 Host system : $HOST_SYSTEM
38 Packages:
40 * Binutils $(ver binutils)
41 * Linux $(ver linux)
42 * GCC $(ver gcc)
43 * Glibc $(ver glibc)
45 Toolchain documentation: http://doc.slitaz.org/en:cookbook:toolchain
47 ================================================================================
49 EOT
50 }
52 genpkg_rules() {
53 copy @std
54 DEPENDS="binutils linux-api-headers glibc-dev gcc make elfkickers"
55 }