wok annotate gcc49-lib-base/receipt @ rev 24192

updated perl-date-manip (6.81 -> 6.86)
author Hans-G?nter Theisgen
date Fri Dec 31 14:44:57 2021 +0100 (2021-12-31)
parents 9e01bc6321ea
children
rev   line source
pascal@17849 1 # SliTaz package receipt.
pascal@17849 2
pascal@17849 3 PACKAGE="gcc49-lib-base"
pascal@17849 4 VERSION="4.9.2"
pascal@17849 5 CATEGORY="development"
pascal@17849 6 SHORT_DESC="GCC base libraries, libgcc_s and libstdc++."
pascal@17849 7 WEB_SITE="http://gcc.gnu.org/"
pascal@17849 8 MAINTAINER="pankso@slitaz.org"
pascal@17849 9 LICENSE="GPL2"
pascal@17849 10 WANTED="gcc49"
pascal@18320 11 PROVIDE="gcc-lib-base"
pascal@17849 12
pascal@17849 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17849 14 genpkg_rules()
pascal@17849 15 {
pascal@17849 16 mkdir -p $fs/usr/lib
pascal@17849 17 cp -a $install/usr/libgcc49/libgcc_s.so* $fs/usr/lib
pascal@17849 18 cp -a $install/usr/libgcc49/libstdc++.so* $fs/usr/lib
pascal@17849 19 rm -f $fs/usr/lib/*-gdb.py
pascal@17849 20 }
pascal@17849 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
pascal@17849 29 post_remove()
pascal@17849 30 {
pascal@18730 31 cd "$1/usr/lib"
pascal@17849 32 ln -s libstdc++.so.6.*.* libstdc++.so.6
pascal@17849 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
pascal@17849 35 cd - >/dev/null
pascal@17849 36 }