# HG changeset patch # User Pascal Bellard # Date 1398528083 0 # Node ID 19c8e4d5a4db653ad6e56ce2a684eb7bdb6cf571 # Parent 20bc76d343ad30dbecf5eb6122836c850abcb53c Add gcc2 diff -r 20bc76d343ad -r 19c8e4d5a4db gcc2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc2 Sat Apr 26 16:01:23 2014 +0000 @@ -0,0 +1,24 @@ +WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95" +VERSION=2.95.4-24 +TARBALL=gcc-2.95_${VERSION}_i386.deb +WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL + +wget $WGET_URL +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting." + +mkdir $PACKAGE +dpkg-deb -e $TARBALL $PACKAGE/meta +dpkg-deb -x $TARBALL $PACKAGE/fs +# extracted pkg can be removed: Save RAM +rm -f $TARBALL +sed '/^Description:/,$!d;s/^Description://' \ + < $PACKAGE/meta/control > $PACKAGE/description.txt + +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)" +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" +mv $PACKAGE $PACKAGE-$VERSION + +# Remove unwanted files +rm -rf $PACKAGE-$VERSION/fs/usr/share +set +e