get-scripts view cpp2 @ rev 19

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