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