wok view gcc83-lib-base/receipt @ rev 21619
gcc83-lib-base: revert to gcc-lib-base post install
Previous post-install rules don't work for me producing error:
error: C compiler cannot create executables
on the another plain build when I previously used gcc83 & gcc83-lib-base to compile my other package
Previous post-install rules don't work for me producing error:
error: C compiler cannot create executables
on the another plain build when I previously used gcc83 & gcc83-lib-base to compile my other package
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 25 14:09:45 2019 +0300 (2019-05-25) |
parents | 6fd8c733a7a8 |
children | 352e1cee9466 |
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
18 cp -a $install/usr/libgcc83/libgcc_s.so* $fs/usr/lib
19 cp -a $install/usr/libgcc83/libstdc++.so* $fs/usr/lib
20 rm -f $fs/usr/lib/*-gdb.py
21 }
23 pre_install()
24 {
25 cd "$1/usr/lib"
26 [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev
27 cd - >/dev/null
28 }
30 post_remove()
31 {
32 cd "$1/usr/lib"
33 ln -s libstdc++.so.8.*.* libstdc++.so.8
34 ln -s libstdc++.so.8.*.* libstdc++.so
35 [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1
36 cd - >/dev/null
38 tazpkg -gi gcc-lib-base --forced
39 }