wok-6.x annotate gcc61-lib-base/receipt @ rev 21877
Add libsodium & python-pynacl
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 28 18:18:15 2019 +0200 (2019-09-28) |
parents | 232cc8814046 |
children |
rev | line source |
---|---|
devl547@19328 | 1 # SliTaz package receipt. |
devl547@19328 | 2 |
devl547@19328 | 3 PACKAGE="gcc61-lib-base" |
devl547@19328 | 4 VERSION="6.1.0" |
devl547@19328 | 5 CATEGORY="development" |
devl547@19328 | 6 SHORT_DESC="GCC base libraries, libgcc_s and libstdc++." |
devl547@19328 | 7 WEB_SITE="http://gcc.gnu.org/" |
devl547@19328 | 8 MAINTAINER="pankso@slitaz.org" |
devl547@19328 | 9 LICENSE="GPL2" |
devl547@19328 | 10 WANTED="gcc61" |
devl547@19328 | 11 PROVIDE="gcc-lib-base" |
devl547@19328 | 12 |
devl547@19328 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@19328 | 14 genpkg_rules() |
devl547@19328 | 15 { |
devl547@19328 | 16 mkdir -p $fs/usr/lib |
devl547@19328 | 17 cp -a $install/usr/libgcc61/libgcc_s.so* $fs/usr/lib |
devl547@19328 | 18 cp -a $install/usr/libgcc61/libstdc++.so* $fs/usr/lib |
devl547@19328 | 19 rm -f $fs/usr/lib/*-gdb.py |
devl547@19328 | 20 } |
devl547@19328 | 21 |
pascal@20373 | 22 pre_install() |
pascal@20373 | 23 { |
pascal@20373 | 24 cd "$1/usr/lib" |
pascal@20373 | 25 [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev |
pascal@20373 | 26 cd - >/dev/null |
pascal@20373 | 27 } |
pascal@20373 | 28 |
devl547@19328 | 29 post_remove() |
devl547@19328 | 30 { |
devl547@19328 | 31 cd "$1/usr/lib" |
devl547@19328 | 32 ln -s libstdc++.so.6.*.* libstdc++.so.6 |
devl547@19328 | 33 ln -s libstdc++.so.6.*.* libstdc++.so |
pascal@20373 | 34 [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1 |
devl547@19328 | 35 cd - >/dev/null |
devl547@19328 | 36 } |