get-scripts annotate gcc2 @ rev 20

Add gcc272
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 06 15:00:33 2014 +0200 (2014-06-06)
parents 6f78b169953f
children 6ca05e6839e1
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@20 3 LICENSE="GPL2"
pascal@13 4 TARBALL=gcc-2.95_${VERSION}_i386.deb
pascal@13 5 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
pascal@14 6 DEPENDS="cpp2 binutils"
pascal@13 7
pascal@13 8 wget $WGET_URL
pascal@13 9 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
pascal@13 10
pascal@13 11 mkdir $PACKAGE
pascal@13 12 dpkg-deb -e $TARBALL $PACKAGE/meta
pascal@13 13 dpkg-deb -x $TARBALL $PACKAGE/fs
pascal@13 14 # extracted pkg can be removed: Save RAM
pascal@13 15 rm -f $TARBALL
pascal@13 16 sed '/^Description:/,$!d;s/^Description://' \
pascal@13 17 < $PACKAGE/meta/control > $PACKAGE/description.txt
pascal@13 18
pascal@13 19 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 20 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@20 21 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 22 mv $PACKAGE $PACKAGE-$VERSION
pascal@20 23 ln -s gcc-2.95 $PACKAGE-$VERSION/fs/usr/bin/gcc-2
pascal@13 24
pascal@13 25 # Remove unwanted files
pascal@13 26 rm -rf $PACKAGE-$VERSION/fs/usr/share
pascal@13 27 set +e