get-scripts annotate gcc2 @ rev 40

list CATEGORY, VERSION, LICENSE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 03 11:24:38 2015 +0200 (2015-05-03)
parents 6ca05e6839e1
children 5d357cb2f906
rev   line source
pascal@34 1 SHORT_DESC="GNU C compiler version 2"
pascal@13 2 WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
pascal@40 3 CATEGORY="development"
pascal@40 4 VERSION="2.95.4-24"
pascal@40 5 LICENSE="GPL2"
pascal@34 6 # end of get.list data
pascal@13 7 TARBALL=gcc-2.95_${VERSION}_i386.deb
pascal@13 8 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
pascal@14 9 DEPENDS="cpp2 binutils"
pascal@13 10
pascal@13 11 wget $WGET_URL
pascal@13 12 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
pascal@13 13
pascal@13 14 mkdir $PACKAGE
pascal@13 15 dpkg-deb -e $TARBALL $PACKAGE/meta
pascal@13 16 dpkg-deb -x $TARBALL $PACKAGE/fs
pascal@13 17 # extracted pkg can be removed: Save RAM
pascal@13 18 rm -f $TARBALL
pascal@13 19 sed '/^Description:/,$!d;s/^Description://' \
pascal@13 20 < $PACKAGE/meta/control > $PACKAGE/description.txt
pascal@13 21
pascal@13 22 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 23 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@20 24 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 25 mv $PACKAGE $PACKAGE-$VERSION
pascal@20 26 ln -s gcc-2.95 $PACKAGE-$VERSION/fs/usr/bin/gcc-2
pascal@13 27
pascal@13 28 # Remove unwanted files
pascal@13 29 rm -rf $PACKAGE-$VERSION/fs/usr/share
pascal@13 30 set +e