wok annotate gcc83-lib-base/receipt @ rev 23638
updated sed (4.7 -> 4.8)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 20 10:17:35 2020 +0100 (2020-04-20) |
parents | 25377ec5be71 |
children | 4290aebd7678 |
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" |
pascal@23005 | 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 { |
pascal@23043 | 17 mkdir -p $fs/usr/lib $fs/usr/libgcc83 |
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 |
pascal@23043 | 20 cp -a $install/usr/libgcc83/libstdc++.la $fs/usr/libgcc83 |
pascal@23044 | 21 ln -s ../lib/libstdc++.so $fs/usr/libgcc83 |
Hans-G?nter@20957 | 22 rm -f $fs/usr/lib/*-gdb.py |
Hans-G?nter@20957 | 23 } |
Hans-G?nter@20957 | 24 |
Hans-G?nter@20957 | 25 pre_install() |
Hans-G?nter@20957 | 26 { |
Hans-G?nter@20957 | 27 cd "$1/usr/lib" |
Hans-G?nter@20957 | 28 [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev |
Hans-G?nter@20957 | 29 cd - >/dev/null |
Hans-G?nter@20957 | 30 } |
Hans-G?nter@20957 | 31 |
Hans-G?nter@20957 | 32 post_remove() |
Hans-G?nter@20957 | 33 { |
Hans-G?nter@20957 | 34 cd "$1/usr/lib" |
pascal@21874 | 35 if [ "$(ls libstdc++.so.8.*.* 2> /dev/null)" ]; then |
pascal@21871 | 36 ln -s libstdc++.so.8.*.* libstdc++.so.8 |
pascal@21871 | 37 ln -s libstdc++.so.8.*.* libstdc++.so |
pascal@21871 | 38 fi |
Hans-G?nter@20957 | 39 [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1 |
Hans-G?nter@20957 | 40 cd - >/dev/null |
al@21619 | 41 |
al@21619 | 42 tazpkg -gi gcc-lib-base --forced |
Hans-G?nter@20957 | 43 } |