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