wok-6.x annotate gcc83-lib-base/receipt @ rev 20957
created gcc83-lib-base
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 04 13:17:33 2019 +0100 (2019-03-04) |
parents | |
children | 8888e7304143 |
rev | line source |
---|---|
Hans-G?nter@20957 | 1 # SliTaz package receipt. |
Hans-G?nter@20957 | 2 |
Hans-G?nter@20957 | 3 PACKAGE="gcc83-lib-base" |
Hans-G?nter@20957 | 4 VERSION="8.3.0" |
Hans-G?nter@20957 | 5 CATEGORY="development" |
Hans-G?nter@20957 | 6 SHORT_DESC="GCC base libraries, libgcc_s and libstdc++." |
Hans-G?nter@20957 | 7 WEB_SITE="https://gcc.gnu.org/" |
Hans-G?nter@20957 | 8 MAINTAINER="developer@slitaz.org" |
Hans-G?nter@20957 | 9 LICENSE="GPL2" |
Hans-G?nter@20957 | 10 |
Hans-G?nter@20957 | 11 WANTED="gcc83" |
Hans-G?nter@20957 | 12 PROVIDE="gcc-lib-base" |
Hans-G?nter@20957 | 13 |
Hans-G?nter@20957 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@20957 | 15 genpkg_rules() |
Hans-G?nter@20957 | 16 { |
Hans-G?nter@20957 | 17 mkdir -p $fs/usr/lib |
Hans-G?nter@20957 | 18 cp -a $install/usr/libgcc83/libgcc_s.so* $fs/usr/lib |
Hans-G?nter@20957 | 19 cp -a $install/usr/libgcc83/libstdc++.so* $fs/usr/lib |
Hans-G?nter@20957 | 20 rm -f $fs/usr/lib/*-gdb.py |
Hans-G?nter@20957 | 21 } |
Hans-G?nter@20957 | 22 |
Hans-G?nter@20957 | 23 pre_install() |
Hans-G?nter@20957 | 24 { |
Hans-G?nter@20957 | 25 cd "$1/usr/lib" |
Hans-G?nter@20957 | 26 [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev |
Hans-G?nter@20957 | 27 cd - >/dev/null |
Hans-G?nter@20957 | 28 } |
Hans-G?nter@20957 | 29 |
Hans-G?nter@20957 | 30 post_remove() |
Hans-G?nter@20957 | 31 { |
Hans-G?nter@20957 | 32 cd "$1/usr/lib" |
Hans-G?nter@20957 | 33 ln -s libstdc++.so.8.*.* libstdc++.so.8 |
Hans-G?nter@20957 | 34 ln -s libstdc++.so.8.*.* libstdc++.so |
Hans-G?nter@20957 | 35 [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1 |
Hans-G?nter@20957 | 36 cd - >/dev/null |
Hans-G?nter@20957 | 37 } |