get-scripts rev 10

Add geogebra
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 31 11:07:42 2014 +0000 (2014-03-31)
parents 5212a92145ca
children a8694d4236f9
files geogebra
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/geogebra	Mon Mar 31 11:07:42 2014 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +WEB_SITE="http://www.geogebra.org/cms/en/"
     1.5 +DEPENDS="bash java-jre ncurses"
     1.6 +URL=http://www.geogebra.org/installers/deb.php
     1.7 +TARBALL=geogebra.deb
     1.8 +
     1.9 +wget -O $TARBALL $URL
    1.10 +
    1.11 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
    1.12 +
    1.13 +mkdir $PACKAGE
    1.14 +dpkg-deb -e $TARBALL $PACKAGE/meta
    1.15 +dpkg-deb -x $TARBALL $PACKAGE/fs
    1.16 +# extracted pkg can be removed: Save RAM
    1.17 +rm -f $TARBALL
    1.18 +sed '/^Description:/,$!d;s/^Description://' \
    1.19 +	< $PACKAGE/meta/control > $PACKAGE/description.txt
    1.20 +
    1.21 +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.22 +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.23 +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.24 +TARBALL=$PACKAGE-$VERSION.deb
    1.25 +mv $PACKAGE $PACKAGE-$VERSION
    1.26 +
    1.27 +set +e