get-scripts view gcc2 @ rev 59

Add kiwix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 23 12:17:06 2016 +0200 (2016-07-23)
parents 5d357cb2f906
children 62d94e6800db
line source
1 SHORT_DESC="GNU C compiler version 2"
2 WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
3 CATEGORY="development"
4 VERSION="2.95.4-24"
5 LICENSE="GPL2"
6 # end of get.list data
7 [ "$1" == "--get-version" ] && echo $VERSION && exit
8 TARBALL=gcc-2.95_${VERSION}_i386.deb
9 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
10 DEPENDS="cpp2 binutils"
12 wget $WGET_URL
13 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
15 mkdir $PACKAGE
16 dpkg-deb -e $TARBALL $PACKAGE/meta
17 dpkg-deb -x $TARBALL $PACKAGE/fs
18 # extracted pkg can be removed: Save RAM
19 rm -f $TARBALL
20 sed '/^Description:/,$!d;s/^Description://' \
21 < $PACKAGE/meta/control > $PACKAGE/description.txt
23 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
24 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
25 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
26 mv $PACKAGE $PACKAGE-$VERSION
27 ln -s gcc-2.95 $PACKAGE-$VERSION/fs/usr/bin/gcc-2
29 # Remove unwanted files
30 rm -rf $PACKAGE-$VERSION/fs/usr/share