get-scripts view cpp2 @ rev 34

Add sublime-text-3
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 23 08:59:52 2015 +0100 (2015-03-23)
parents 377ade2bcf0c
children 138433e8cb19
line source
1 SHORT_DESC="GNU ccp version 2""
2 WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
3 # end of get.list data
4 VERSION=2.95.4-24
5 LICENSE="GPL2"
6 TARBALL=cpp-2.95_${VERSION}_i386.deb
7 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
9 wget $WGET_URL
10 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
12 mkdir $PACKAGE
13 dpkg-deb -e $TARBALL $PACKAGE/meta
14 dpkg-deb -x $TARBALL $PACKAGE/fs
15 # extracted pkg can be removed: Save RAM
16 rm -f $TARBALL
17 sed '/^Description:/,$!d;s/^Description://' \
18 < $PACKAGE/meta/control > $PACKAGE/description.txt
20 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
21 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
22 #VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
23 mv $PACKAGE $PACKAGE-$VERSION
24 ln -s cpp-2.95 $PACKAGE-$VERSION/fs/usr/bin/cpp-2
26 # Remove unwanted files
27 rm -rf $PACKAGE-$VERSION/fs/usr/share
28 set +e