get-scripts view gcc272 @ rev 72

opera: 404, update $URL
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Wed Sep 27 13:40:10 2017 +0200 (2017-09-27)
parents 2cdf3e534506
children ebbc906a623e
line source
1 SHORT_DESC="GNU C compiler version 2.7.2"
2 WEB_SITE="http://www.gnu.org/s/gcc"
3 CATEGORY="development"
4 VERSION="2.7.2.3-19"
5 LICENSE="GPL2"
6 # end of get.list data
7 [ "$1" == "--get-version" ] && echo $VERSION && exit
8 TARBALL=gcc272_${VERSION}_i386.deb
9 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc272/$TARBALL
10 DEPENDS="binutils"
12 wget $WGET_URL
13 [ -f $TARBALL ] || abort_package
15 mkdir $PACKAGE
16 dpkg-deb -e $TARBALL $PACKAGE/meta
17 dpkg-deb -x $TARBALL $PACKAGE/fs
18 # extracted pkg can be removed: Save RAM
19 rm -f $TARBALL
20 sed '/^Description:/,$!d;s/^Description://' \
21 < $PACKAGE/meta/control > $PACKAGE/description.txt
23 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
24 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
25 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
26 mv $PACKAGE $PACKAGE-$VERSION
28 # Remove unwanted files
29 rm -rf $PACKAGE-$VERSION/fs/usr/share