get-scripts rev 14

Add cpp2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 26 18:33:01 2014 +0000 (2014-04-26)
parents 19c8e4d5a4db
children 943b11283717
files cpp2 gcc2
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cpp2	Sat Apr 26 18:33:01 2014 +0000
     1.3 @@ -0,0 +1,25 @@
     1.4 +WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
     1.5 +VERSION=2.95.4-24
     1.6 +TARBALL=cpp-2.95_${VERSION}_i386.deb
     1.7 +WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
     1.8 +
     1.9 +wget $WGET_URL
    1.10 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
    1.11 +
    1.12 +mkdir $PACKAGE
    1.13 +dpkg-deb -e $TARBALL $PACKAGE/meta
    1.14 +dpkg-deb -x $TARBALL $PACKAGE/fs
    1.15 +# extracted pkg can be removed: Save RAM
    1.16 +rm -f $TARBALL
    1.17 +sed '/^Description:/,$!d;s/^Description://' \
    1.18 +	< $PACKAGE/meta/control > $PACKAGE/description.txt
    1.19 +
    1.20 +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.21 +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.22 +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.23 +mv $PACKAGE $PACKAGE-$VERSION
    1.24 +ln -s cpp-2.95 $PACKAGE-$VERSION/usr/bin/cpp-2
    1.25 +
    1.26 +# Remove unwanted files
    1.27 +rm -rf $PACKAGE-$VERSION/fs/usr/share
    1.28 +set +e
     2.1 --- a/gcc2	Sat Apr 26 16:01:23 2014 +0000
     2.2 +++ b/gcc2	Sat Apr 26 18:33:01 2014 +0000
     2.3 @@ -2,6 +2,7 @@
     2.4  VERSION=2.95.4-24
     2.5  TARBALL=gcc-2.95_${VERSION}_i386.deb
     2.6  WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
     2.7 +DEPENDS="cpp2 binutils"
     2.8  
     2.9  wget $WGET_URL
    2.10  [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
    2.11 @@ -18,6 +19,7 @@
    2.12  MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
    2.13  VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    2.14  mv $PACKAGE $PACKAGE-$VERSION
    2.15 +ln -s gcc-2.95 $PACKAGE-$VERSION/usr/bin/gcc-2
    2.16  
    2.17  # Remove unwanted files
    2.18  rm -rf $PACKAGE-$VERSION/fs/usr/share