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