wok-current view gcc83-lib-base/receipt @ rev 23182
updated mlvpn (1.3.2 -> 2.3.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 19 16:46:22 2020 +0100 (2020-03-19) |
parents | 25377ec5be71 |
children | 4290aebd7678 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc83-lib-base"
4 VERSION="8.3.0"
5 CATEGORY="development"
6 SHORT_DESC="GCC base libraries, libgcc_s and libstdc++."
7 WEB_SITE="https://gcc.gnu.org/"
8 MAINTAINER="developer@slitaz.org"
9 LICENSE="GPL2"
11 WANTED="gcc83"
12 PROVIDE="gcc-lib-base"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/lib $fs/usr/libgcc83
18 cp -a $install/usr/libgcc83/libgcc_s.so* $fs/usr/lib
19 cp -a $install/usr/libgcc83/libstdc++.so* $fs/usr/lib
20 cp -a $install/usr/libgcc83/libstdc++.la $fs/usr/libgcc83
21 ln -s ../lib/libstdc++.so $fs/usr/libgcc83
22 rm -f $fs/usr/lib/*-gdb.py
23 }
25 pre_install()
26 {
27 cd "$1/usr/lib"
28 [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev
29 cd - >/dev/null
30 }
32 post_remove()
33 {
34 cd "$1/usr/lib"
35 if [ "$(ls libstdc++.so.8.*.* 2> /dev/null)" ]; then
36 ln -s libstdc++.so.8.*.* libstdc++.so.8
37 ln -s libstdc++.so.8.*.* libstdc++.so
38 fi
39 [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1
40 cd - >/dev/null
42 tazpkg -gi gcc-lib-base --forced
43 }