get-scripts view gcc2 @ rev 39

geogebra: update
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 29 18:51:12 2015 +0200 (2015-04-29)
parents 377ade2bcf0c
children 9236e88ec240
line source
1 SHORT_DESC="GNU C compiler 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=gcc-2.95_${VERSION}_i386.deb
7 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
8 DEPENDS="cpp2 binutils"
10 wget $WGET_URL
11 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
13 mkdir $PACKAGE
14 dpkg-deb -e $TARBALL $PACKAGE/meta
15 dpkg-deb -x $TARBALL $PACKAGE/fs
16 # extracted pkg can be removed: Save RAM
17 rm -f $TARBALL
18 sed '/^Description:/,$!d;s/^Description://' \
19 < $PACKAGE/meta/control > $PACKAGE/description.txt
21 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
22 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
23 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
24 mv $PACKAGE $PACKAGE-$VERSION
25 ln -s gcc-2.95 $PACKAGE-$VERSION/fs/usr/bin/gcc-2
27 # Remove unwanted files
28 rm -rf $PACKAGE-$VERSION/fs/usr/share
29 set +e