get-scripts view gcc272 @ rev 20

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