get-scripts annotate gcc272 @ rev 63
Add nanozip
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 10 14:15:08 2016 +0200 (2016-08-10) |
parents | 2cdf3e534506 |
children | ebbc906a623e |
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@40 | 3 CATEGORY="development" |
pascal@40 | 4 VERSION="2.7.2.3-19" |
pascal@40 | 5 LICENSE="GPL2" |
pascal@34 | 6 # end of get.list data |
pascal@45 | 7 [ "$1" == "--get-version" ] && echo $VERSION && exit |
pascal@20 | 8 TARBALL=gcc272_${VERSION}_i386.deb |
pascal@20 | 9 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc272/$TARBALL |
pascal@20 | 10 DEPENDS="binutils" |
pascal@20 | 11 |
pascal@20 | 12 wget $WGET_URL |
pascal@63 | 13 [ -f $TARBALL ] || abort_package |
pascal@20 | 14 |
pascal@20 | 15 mkdir $PACKAGE |
pascal@20 | 16 dpkg-deb -e $TARBALL $PACKAGE/meta |
pascal@20 | 17 dpkg-deb -x $TARBALL $PACKAGE/fs |
pascal@20 | 18 # extracted pkg can be removed: Save RAM |
pascal@20 | 19 rm -f $TARBALL |
pascal@20 | 20 sed '/^Description:/,$!d;s/^Description://' \ |
pascal@20 | 21 < $PACKAGE/meta/control > $PACKAGE/description.txt |
pascal@20 | 22 |
pascal@20 | 23 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)" |
pascal@20 | 24 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" |
pascal@20 | 25 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" |
pascal@20 | 26 mv $PACKAGE $PACKAGE-$VERSION |
pascal@20 | 27 |
pascal@20 | 28 # Remove unwanted files |
pascal@20 | 29 rm -rf $PACKAGE-$VERSION/fs/usr/share |