get-scripts annotate gcc272 @ 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.7.2"
pascal@20 2 WEB_SITE="http://www.gnu.org/s/gcc"
pascal@40 3 CATEGORY="development"
pascal@40 4 VERSION="2.7.2.3-19"
pascal@40 5 LICENSE="GPL2"
pascal@34 6 # end of get.list data
pascal@20 7 TARBALL=gcc272_${VERSION}_i386.deb
pascal@20 8 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc272/$TARBALL
pascal@20 9 DEPENDS="binutils"
pascal@20 10
pascal@20 11 wget $WGET_URL
pascal@20 12 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
pascal@20 13
pascal@20 14 mkdir $PACKAGE
pascal@20 15 dpkg-deb -e $TARBALL $PACKAGE/meta
pascal@20 16 dpkg-deb -x $TARBALL $PACKAGE/fs
pascal@20 17 # extracted pkg can be removed: Save RAM
pascal@20 18 rm -f $TARBALL
pascal@20 19 sed '/^Description:/,$!d;s/^Description://' \
pascal@20 20 < $PACKAGE/meta/control > $PACKAGE/description.txt
pascal@20 21
pascal@20 22 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@20 23 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@20 24 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@20 25 mv $PACKAGE $PACKAGE-$VERSION
pascal@20 26
pascal@20 27 # Remove unwanted files
pascal@20 28 rm -rf $PACKAGE-$VERSION/fs/usr/share
pascal@20 29 set +e