get-scripts annotate gcc2 @ rev 80

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