get-scripts view geogebra @ 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 | 552ec1a3614c |
children | f76c7e17c9f5 |
line source
1 SHORT_DESC="Dynamic mathematics for learning and teaching"
2 WEB_SITE="http://www.geogebra.org/cms/en/"
3 # end of get.list data
4 DEPENDS="bash java-jre ncurses"
5 WGET_URL=http://www.geogebra.org/installers/deb.php
6 TARBALL=geogebra.deb
8 wget -O $TARBALL $WGET_URL
10 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_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 TARBALL=${PACKAGE}_$VERSION.deb
24 mv $PACKAGE $PACKAGE-$VERSION
26 set +e