get-scripts annotate 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
rev   line source
pascal@34 1 SHORT_DESC="Dynamic mathematics for learning and teaching"
pascal@10 2 WEB_SITE="http://www.geogebra.org/cms/en/"
pascal@34 3 # end of get.list data
pascal@10 4 DEPENDS="bash java-jre ncurses"
pascal@29 5 WGET_URL=http://www.geogebra.org/installers/deb.php
pascal@10 6 TARBALL=geogebra.deb
pascal@10 7
pascal@29 8 wget -O $TARBALL $WGET_URL
pascal@10 9
pascal@29 10 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
pascal@10 11
pascal@10 12 mkdir $PACKAGE
pascal@10 13 dpkg-deb -e $TARBALL $PACKAGE/meta
pascal@10 14 dpkg-deb -x $TARBALL $PACKAGE/fs
pascal@10 15 # extracted pkg can be removed: Save RAM
pascal@10 16 rm -f $TARBALL
pascal@10 17 sed '/^Description:/,$!d;s/^Description://' \
pascal@10 18 < $PACKAGE/meta/control > $PACKAGE/description.txt
pascal@10 19
pascal@10 20 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@10 21 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@10 22 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@11 23 TARBALL=${PACKAGE}_$VERSION.deb
pascal@10 24 mv $PACKAGE $PACKAGE-$VERSION
pascal@10 25
pascal@10 26 set +e