wok-current view gcc83-lib-base/receipt @ rev 25529
created recipe for neovim-0.8.3
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 25 14:14:14 2023 +0100 (22 months ago) |
parents | 4290aebd7678 |
children |
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 for i in $install/usr/libgcc83/libgcc_s.so* ; do
19 cp -a $i $fs/usr/lib/next.$(basename $i)
20 done
21 cp -a $install/usr/libgcc83/libstdc++.so.*.*.* $fs/usr/lib
22 cp -a $install/usr/libgcc83/libstdc++.la $fs/usr/libgcc83
23 ln -s ../lib/libstdc++.so $fs/usr/libgcc83
24 rm -f $fs/usr/lib/*-gdb.py
25 }
27 pre_install()
28 {
29 cd "$1/usr/lib"
30 local lib=$(ls libstdc++.so.6.*.* 2> /dev/null)
31 [ "$lib" ] && cp -a $lib prev.$lib
32 [ -s libgcc_s.so.1 ] && for i in libgcc_s.so*; do
33 cp -a $i prev.$i
34 done
35 cd - >/dev/null
36 }
38 post_install()
39 {
40 cd "$1/usr/lib"
41 ln -fs libstdc++.so.6.*.* libstdc++.so.6
42 ln -fs libstdc++.so.6.*.* libstdc++.so
43 for i in next.libgcc_s.so* ; do
44 cp -af $i ${i#next.}
45 done
46 cd - >/dev/null
47 }
49 pre_remove()
50 {
51 cd "$1/usr/lib"
52 local lib=$(ls prev.libstdc++.so.6.*.* 2> /dev/null)
53 if [ "$lib" ]; then
54 mv -f $lib ${lib#prev.}
55 ln -fs ${lib#prev.} libstdc++.so.6
56 ln -fs ${lib#prev.} libstdc++.so
57 else
58 rm -f libstdc++.so.6 libstdc++.so
59 fi
60 for i in libgcc_s.so* ; do
61 cp -a $i next.$i
62 done
63 cd - >/dev/null
64 }
66 post_remove()
67 {
68 cd "$1/usr/lib"
69 [ -s prev.libgcc_s.so.1 ] && for i in prev.libgcc_s.so* ; do
70 mv -f $i ${i#prev.}
71 done || rm -f libgcc_s.so*
72 cd - >/dev/null
73 }