wok annotate gcc83-lib-base/receipt @ rev 22332
updated ziproxy (3.2.1 -> 3.3.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Nov 15 14:49:02 2019 +0100 (2019-11-15) |
parents | 4b27a977323d |
children | c9ce7c118b71 |
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" |
al@22042 | 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" |
pascal@21874 | 33 if [ "$(ls libstdc++.so.8.*.* 2> /dev/null)" ]; then |
pascal@21871 | 34 ln -s libstdc++.so.8.*.* libstdc++.so.8 |
pascal@21871 | 35 ln -s libstdc++.so.8.*.* libstdc++.so |
pascal@21871 | 36 fi |
Hans-G?nter@20957 | 37 [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1 |
Hans-G?nter@20957 | 38 cd - >/dev/null |
al@21619 | 39 |
al@21619 | 40 tazpkg -gi gcc-lib-base --forced |
Hans-G?nter@20957 | 41 } |