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