wok view gcc63-lib-base/receipt @ rev 24007
Up zstd (1.4.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 29 15:34:50 2021 +0000 (2021-01-29) |
parents | 7cac2000f709 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc63-lib-base"
4 VERSION="6.3.0"
5 CATEGORY="development"
6 SHORT_DESC="GCC base libraries, libgcc_s and libstdc++."
7 WEB_SITE="http://gcc.gnu.org/"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WANTED="gcc63"
11 PROVIDE="gcc-lib-base"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p $fs/usr/lib
17 cp -a $install/usr/libgcc63/libgcc_s.so* $fs/usr/lib
18 cp -a $install/usr/libgcc63/libstdc++.so* $fs/usr/lib
19 rm -f $fs/usr/lib/*-gdb.py
20 }
22 pre_install()
23 {
24 cd "$1/usr/lib"
25 [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev
26 cd - >/dev/null
27 }
29 post_remove()
30 {
31 cd "$1/usr/lib"
32 ln -s libstdc++.so.6.*.* libstdc++.so.6
33 ln -s libstdc++.so.6.*.* libstdc++.so
34 [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1
35 cd - >/dev/null
36 }