get-scripts annotate gcc272 @ rev 31

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