get-scripts annotate gcc2 @ rev 13

Add gcc2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 26 16:01:23 2014 +0000 (2014-04-26)
parents
children 6f78b169953f
rev   line source
pascal@13 1 WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
pascal@13 2 VERSION=2.95.4-24
pascal@13 3 TARBALL=gcc-2.95_${VERSION}_i386.deb
pascal@13 4 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
pascal@13 5
pascal@13 6 wget $WGET_URL
pascal@13 7 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
pascal@13 8
pascal@13 9 mkdir $PACKAGE
pascal@13 10 dpkg-deb -e $TARBALL $PACKAGE/meta
pascal@13 11 dpkg-deb -x $TARBALL $PACKAGE/fs
pascal@13 12 # extracted pkg can be removed: Save RAM
pascal@13 13 rm -f $TARBALL
pascal@13 14 sed '/^Description:/,$!d;s/^Description://' \
pascal@13 15 < $PACKAGE/meta/control > $PACKAGE/description.txt
pascal@13 16
pascal@13 17 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 18 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 19 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 20 mv $PACKAGE $PACKAGE-$VERSION
pascal@13 21
pascal@13 22 # Remove unwanted files
pascal@13 23 rm -rf $PACKAGE-$VERSION/fs/usr/share
pascal@13 24 set +e