get-scripts view gcc272 @ rev 34

Add sublime-text-3
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 23 08:59:52 2015 +0100 (2015-03-23)
parents 377ade2bcf0c
children 9236e88ec240
line source
1 SHORT_DESC="GNU C compiler version 2.7.2"
2 WEB_SITE="http://www.gnu.org/s/gcc"
3 # end of get.list data
4 VERSION=2.7.2.3-19
5 LICENSE="GPL2"
6 TARBALL=gcc272_${VERSION}_i386.deb
7 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc272/$TARBALL
8 DEPENDS="binutils"
10 wget $WGET_URL
11 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
13 mkdir $PACKAGE
14 dpkg-deb -e $TARBALL $PACKAGE/meta
15 dpkg-deb -x $TARBALL $PACKAGE/fs
16 # extracted pkg can be removed: Save RAM
17 rm -f $TARBALL
18 sed '/^Description:/,$!d;s/^Description://' \
19 < $PACKAGE/meta/control > $PACKAGE/description.txt
21 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
22 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
23 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
24 mv $PACKAGE $PACKAGE-$VERSION
26 # Remove unwanted files
27 rm -rf $PACKAGE-$VERSION/fs/usr/share
28 set +e