wok annotate gcc63-lib-base/receipt @ rev 21466
updated mondo (3.0.2 -> 3.2.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 30 15:06:09 2019 +0100 (2019-04-30) |
parents | 7cac2000f709 |
children |
rev | line source |
---|---|
devl547@19623 | 1 # SliTaz package receipt. |
devl547@19623 | 2 |
devl547@19623 | 3 PACKAGE="gcc63-lib-base" |
devl547@19623 | 4 VERSION="6.3.0" |
devl547@19623 | 5 CATEGORY="development" |
devl547@19623 | 6 SHORT_DESC="GCC base libraries, libgcc_s and libstdc++." |
devl547@19623 | 7 WEB_SITE="http://gcc.gnu.org/" |
devl547@19623 | 8 MAINTAINER="pankso@slitaz.org" |
devl547@19623 | 9 LICENSE="GPL2" |
devl547@19623 | 10 WANTED="gcc63" |
devl547@19623 | 11 PROVIDE="gcc-lib-base" |
devl547@19623 | 12 |
devl547@19623 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@19623 | 14 genpkg_rules() |
devl547@19623 | 15 { |
devl547@19623 | 16 mkdir -p $fs/usr/lib |
devl547@19623 | 17 cp -a $install/usr/libgcc63/libgcc_s.so* $fs/usr/lib |
devl547@19623 | 18 cp -a $install/usr/libgcc63/libstdc++.so* $fs/usr/lib |
devl547@19623 | 19 rm -f $fs/usr/lib/*-gdb.py |
devl547@19623 | 20 } |
devl547@19623 | 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@19623 | 29 post_remove() |
devl547@19623 | 30 { |
devl547@19623 | 31 cd "$1/usr/lib" |
devl547@19623 | 32 ln -s libstdc++.so.6.*.* libstdc++.so.6 |
devl547@19623 | 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@19623 | 35 cd - >/dev/null |
devl547@19623 | 36 } |