get-scripts view gcc2 @ rev 26

Add apk-studio
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 19 13:55:21 2014 +0100 (2014-11-19)
parents 6f78b169953f
children 6ca05e6839e1
line source
1 WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
2 VERSION=2.95.4-24
3 LICENSE="GPL2"
4 TARBALL=gcc-2.95_${VERSION}_i386.deb
5 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
6 DEPENDS="cpp2 binutils"
8 wget $WGET_URL
9 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
11 mkdir $PACKAGE
12 dpkg-deb -e $TARBALL $PACKAGE/meta
13 dpkg-deb -x $TARBALL $PACKAGE/fs
14 # extracted pkg can be removed: Save RAM
15 rm -f $TARBALL
16 sed '/^Description:/,$!d;s/^Description://' \
17 < $PACKAGE/meta/control > $PACKAGE/description.txt
19 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
20 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
21 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
22 mv $PACKAGE $PACKAGE-$VERSION
23 ln -s gcc-2.95 $PACKAGE-$VERSION/fs/usr/bin/gcc-2
25 # Remove unwanted files
26 rm -rf $PACKAGE-$VERSION/fs/usr/share
27 set +e