get-scripts annotate cpp2 @ rev 73

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