get-scripts rev 20

Add gcc272
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 06 15:00:33 2014 +0200 (2014-06-06)
parents a469956cbdf8
children ebd0372803bc
files cpp2 gcc2 gcc272
line diff
     1.1 --- a/cpp2	Fri Jun 06 12:58:17 2014 +0200
     1.2 +++ b/cpp2	Fri Jun 06 15:00:33 2014 +0200
     1.3 @@ -1,5 +1,6 @@
     1.4  WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
     1.5  VERSION=2.95.4-24
     1.6 +LICENSE="GPL2"
     1.7  TARBALL=cpp-2.95_${VERSION}_i386.deb
     1.8  WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
     1.9  
    1.10 @@ -16,9 +17,9 @@
    1.11  
    1.12  SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.13  MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.14 -VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.15 +#VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.16  mv $PACKAGE $PACKAGE-$VERSION
    1.17 -ln -s cpp-2.95 $PACKAGE-$VERSION/usr/bin/cpp-2
    1.18 +ln -s cpp-2.95 $PACKAGE-$VERSION/fs/usr/bin/cpp-2
    1.19  
    1.20  # Remove unwanted files
    1.21  rm -rf $PACKAGE-$VERSION/fs/usr/share
     2.1 --- a/gcc2	Fri Jun 06 12:58:17 2014 +0200
     2.2 +++ b/gcc2	Fri Jun 06 15:00:33 2014 +0200
     2.3 @@ -1,5 +1,6 @@
     2.4  WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
     2.5  VERSION=2.95.4-24
     2.6 +LICENSE="GPL2"
     2.7  TARBALL=gcc-2.95_${VERSION}_i386.deb
     2.8  WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
     2.9  DEPENDS="cpp2 binutils"
    2.10 @@ -17,9 +18,9 @@
    2.11  
    2.12  SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
    2.13  MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
    2.14 -VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    2.15 +#VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    2.16  mv $PACKAGE $PACKAGE-$VERSION
    2.17 -ln -s gcc-2.95 $PACKAGE-$VERSION/usr/bin/gcc-2
    2.18 +ln -s gcc-2.95 $PACKAGE-$VERSION/fs/usr/bin/gcc-2
    2.19  
    2.20  # Remove unwanted files
    2.21  rm -rf $PACKAGE-$VERSION/fs/usr/share
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/gcc272	Fri Jun 06 15:00:33 2014 +0200
     3.3 @@ -0,0 +1,26 @@
     3.4 +WEB_SITE="http://www.gnu.org/s/gcc"
     3.5 +VERSION=2.7.2.3-19
     3.6 +LICENSE="GPL2"
     3.7 +TARBALL=gcc272_${VERSION}_i386.deb
     3.8 +WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc272/$TARBALL
     3.9 +DEPENDS="binutils"
    3.10 +
    3.11 +wget $WGET_URL
    3.12 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
    3.13 +
    3.14 +mkdir $PACKAGE
    3.15 +dpkg-deb -e $TARBALL $PACKAGE/meta
    3.16 +dpkg-deb -x $TARBALL $PACKAGE/fs
    3.17 +# extracted pkg can be removed: Save RAM
    3.18 +rm -f $TARBALL
    3.19 +sed '/^Description:/,$!d;s/^Description://' \
    3.20 +	< $PACKAGE/meta/control > $PACKAGE/description.txt
    3.21 +
    3.22 +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
    3.23 +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
    3.24 +#VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    3.25 +mv $PACKAGE $PACKAGE-$VERSION
    3.26 +
    3.27 +# Remove unwanted files
    3.28 +rm -rf $PACKAGE-$VERSION/fs/usr/share
    3.29 +set +e