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