wok annotate gcc54-lib-base/receipt @ rev 21623

linld: more ram for zImage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 26 12:07:54 2019 +0200 (2019-05-26)
parents 232cc8814046
children
rev   line source
devl547@19328 1 # SliTaz package receipt.
devl547@19328 2
devl547@19328 3 PACKAGE="gcc54-lib-base"
devl547@19328 4 VERSION="5.4.0"
devl547@19328 5 CATEGORY="development"
devl547@19328 6 SHORT_DESC="GCC base libraries, libgcc_s and libstdc++."
devl547@19328 7 WEB_SITE="http://gcc.gnu.org/"
devl547@19328 8 MAINTAINER="pankso@slitaz.org"
devl547@19328 9 LICENSE="GPL2"
devl547@19328 10 WANTED="gcc54"
devl547@19328 11 PROVIDE="gcc-lib-base"
devl547@19328 12
devl547@19328 13 # Rules to gen a SliTaz package suitable for Tazpkg.
devl547@19328 14 genpkg_rules()
devl547@19328 15 {
devl547@19328 16 mkdir -p $fs/usr/lib
devl547@19328 17 cp -a $install/usr/libgcc54/libgcc_s.so* $fs/usr/lib
devl547@19328 18 cp -a $install/usr/libgcc54/libstdc++.so* $fs/usr/lib
devl547@19328 19 rm -f $fs/usr/lib/*-gdb.py
devl547@19328 20 }
devl547@19328 21
pascal@20373 22 pre_install()
pascal@20373 23 {
pascal@20373 24 cd "$1/usr/lib"
pascal@20373 25 [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev
pascal@20373 26 cd - >/dev/null
pascal@20373 27 }
pascal@20373 28
devl547@19328 29 post_remove()
devl547@19328 30 {
devl547@19328 31 cd "$1/usr/lib"
devl547@19328 32 ln -s libstdc++.so.6.*.* libstdc++.so.6
devl547@19328 33 ln -s libstdc++.so.6.*.* libstdc++.so
pascal@20373 34 [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1
devl547@19328 35 cd - >/dev/null
devl547@19328 36 }