wok rev 20957

created gcc83-lib-base
author Hans-G?nter Theisgen
date Mon Mar 04 13:17:33 2019 +0100 (22 months ago)
parents ba3dcc5955bc
children 11cf05d34b13
files gcc83-lib-base/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc83-lib-base/receipt	Mon Mar 04 13:17:33 2019 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gcc83-lib-base"
     1.7 +VERSION="8.3.0"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="GCC base libraries, libgcc_s and libstdc++."
    1.10 +WEB_SITE="https://gcc.gnu.org/"
    1.11 +MAINTAINER="developer@slitaz.org"
    1.12 +LICENSE="GPL2"
    1.13 +
    1.14 +WANTED="gcc83"
    1.15 +PROVIDE="gcc-lib-base"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	mkdir -p $fs/usr/lib
    1.21 +	cp -a $install/usr/libgcc83/libgcc_s.so*	$fs/usr/lib
    1.22 +	cp -a $install/usr/libgcc83/libstdc++.so*	$fs/usr/lib
    1.23 +	rm -f $fs/usr/lib/*-gdb.py
    1.24 +}
    1.25 +
    1.26 +pre_install()
    1.27 +{
    1.28 +	cd "$1/usr/lib"
    1.29 +	[ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev 
    1.30 +	cd - >/dev/null
    1.31 +}
    1.32 +
    1.33 +post_remove()
    1.34 +{
    1.35 +	cd "$1/usr/lib"
    1.36 +	ln -s libstdc++.so.8.*.* libstdc++.so.8
    1.37 +	ln -s libstdc++.so.8.*.* libstdc++.so
    1.38 +	[ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1
    1.39 +	cd - >/dev/null
    1.40 +}