get-scripts annotate geogebra @ rev 10

Add geogebra
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 31 11:07:42 2014 +0000 (2014-03-31)
parents
children a8694d4236f9
rev   line source
pascal@10 1 WEB_SITE="http://www.geogebra.org/cms/en/"
pascal@10 2 DEPENDS="bash java-jre ncurses"
pascal@10 3 URL=http://www.geogebra.org/installers/deb.php
pascal@10 4 TARBALL=geogebra.deb
pascal@10 5
pascal@10 6 wget -O $TARBALL $URL
pascal@10 7
pascal@10 8 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
pascal@10 9
pascal@10 10 mkdir $PACKAGE
pascal@10 11 dpkg-deb -e $TARBALL $PACKAGE/meta
pascal@10 12 dpkg-deb -x $TARBALL $PACKAGE/fs
pascal@10 13 # extracted pkg can be removed: Save RAM
pascal@10 14 rm -f $TARBALL
pascal@10 15 sed '/^Description:/,$!d;s/^Description://' \
pascal@10 16 < $PACKAGE/meta/control > $PACKAGE/description.txt
pascal@10 17
pascal@10 18 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@10 19 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@10 20 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@10 21 TARBALL=$PACKAGE-$VERSION.deb
pascal@10 22 mv $PACKAGE $PACKAGE-$VERSION
pascal@10 23
pascal@10 24 set +e