wok-current annotate gcc83-lib-base/receipt @ rev 24145
ventoy: set arch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 17 10:14:59 2021 +0000 (2021-11-17) |
parents | 4290aebd7678 |
children |
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 |
pascal@23904 | 18 for i in $install/usr/libgcc83/libgcc_s.so* ; do |
pascal@23904 | 19 cp -a $i $fs/usr/lib/next.$(basename $i) |
pascal@23904 | 20 done |
pascal@23904 | 21 cp -a $install/usr/libgcc83/libstdc++.so.*.*.* $fs/usr/lib |
pascal@23043 | 22 cp -a $install/usr/libgcc83/libstdc++.la $fs/usr/libgcc83 |
pascal@23044 | 23 ln -s ../lib/libstdc++.so $fs/usr/libgcc83 |
Hans-G?nter@20957 | 24 rm -f $fs/usr/lib/*-gdb.py |
Hans-G?nter@20957 | 25 } |
Hans-G?nter@20957 | 26 |
Hans-G?nter@20957 | 27 pre_install() |
Hans-G?nter@20957 | 28 { |
Hans-G?nter@20957 | 29 cd "$1/usr/lib" |
pascal@23904 | 30 local lib=$(ls libstdc++.so.6.*.* 2> /dev/null) |
pascal@23904 | 31 [ "$lib" ] && cp -a $lib prev.$lib |
pascal@23904 | 32 [ -s libgcc_s.so.1 ] && for i in libgcc_s.so*; do |
pascal@23904 | 33 cp -a $i prev.$i |
pascal@23904 | 34 done |
pascal@23904 | 35 cd - >/dev/null |
pascal@23904 | 36 } |
pascal@23904 | 37 |
pascal@23904 | 38 post_install() |
pascal@23904 | 39 { |
pascal@23904 | 40 cd "$1/usr/lib" |
pascal@23904 | 41 ln -fs libstdc++.so.6.*.* libstdc++.so.6 |
pascal@23904 | 42 ln -fs libstdc++.so.6.*.* libstdc++.so |
pascal@23904 | 43 for i in next.libgcc_s.so* ; do |
pascal@23904 | 44 cp -af $i ${i#next.} |
pascal@23904 | 45 done |
pascal@23904 | 46 cd - >/dev/null |
pascal@23904 | 47 } |
pascal@23904 | 48 |
pascal@23904 | 49 pre_remove() |
pascal@23904 | 50 { |
pascal@23904 | 51 cd "$1/usr/lib" |
pascal@23904 | 52 local lib=$(ls prev.libstdc++.so.6.*.* 2> /dev/null) |
pascal@23904 | 53 if [ "$lib" ]; then |
pascal@23904 | 54 mv -f $lib ${lib#prev.} |
pascal@23904 | 55 ln -fs ${lib#prev.} libstdc++.so.6 |
pascal@23904 | 56 ln -fs ${lib#prev.} libstdc++.so |
pascal@23904 | 57 else |
pascal@23904 | 58 rm -f libstdc++.so.6 libstdc++.so |
pascal@23904 | 59 fi |
pascal@23904 | 60 for i in libgcc_s.so* ; do |
pascal@23904 | 61 cp -a $i next.$i |
pascal@23904 | 62 done |
Hans-G?nter@20957 | 63 cd - >/dev/null |
Hans-G?nter@20957 | 64 } |
Hans-G?nter@20957 | 65 |
Hans-G?nter@20957 | 66 post_remove() |
Hans-G?nter@20957 | 67 { |
Hans-G?nter@20957 | 68 cd "$1/usr/lib" |
pascal@23904 | 69 [ -s prev.libgcc_s.so.1 ] && for i in prev.libgcc_s.so* ; do |
pascal@23904 | 70 mv -f $i ${i#prev.} |
pascal@23904 | 71 done || rm -f libgcc_s.so* |
Hans-G?nter@20957 | 72 cd - >/dev/null |
Hans-G?nter@20957 | 73 } |