wok-current annotate gcc83-lib-base/receipt @ rev 21871
sarg: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 25 18:02:05 2019 +0200 (2019-09-25) |
parents | 8888e7304143 |
children | 4b27a977323d |
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" |
pascal@21871 | 33 if [ "$(ls libstdc++.so.8.*.*)" ]; 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 } |