get-scripts view cpp2 @ 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
line source
1 SHORT_DESC="GNU ccp 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=cpp-2.95_${VERSION}_i386.deb
9 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
11 wget $WGET_URL
12 [ -f $TARBALL ] || abort_package
14 mkdir $PACKAGE
15 dpkg-deb -e $TARBALL $PACKAGE/meta
16 dpkg-deb -x $TARBALL $PACKAGE/fs
17 # extracted pkg can be removed: Save RAM
18 rm -f $TARBALL
19 sed '/^Description:/,$!d;s/^Description://' \
20 < $PACKAGE/meta/control > $PACKAGE/description.txt
22 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
23 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
24 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
25 mv $PACKAGE $PACKAGE-$VERSION
26 ln -s cpp-2.95 $PACKAGE-$VERSION/fs/usr/bin/cpp-2
28 # Remove unwanted files
29 rm -rf $PACKAGE-$VERSION/fs/usr/share