get-scripts rev 13

Add gcc2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 26 16:01:23 2014 +0000 (2014-04-26)
parents 20bc76d343ad
children 6f78b169953f
files gcc2
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc2	Sat Apr 26 16:01:23 2014 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
     1.5 +VERSION=2.95.4-24
     1.6 +TARBALL=gcc-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 +
    1.25 +# Remove unwanted files
    1.26 +rm -rf $PACKAGE-$VERSION/fs/usr/share
    1.27 +set +e