get-scripts annotate geogebra @ rev 29

fix dropbox
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 23 17:28:06 2014 +0100 (2014-11-23)
parents a8694d4236f9
children 6ca05e6839e1
rev   line source
pascal@10 1 WEB_SITE="http://www.geogebra.org/cms/en/"
pascal@10 2 DEPENDS="bash java-jre ncurses"
pascal@29 3 WGET_URL=http://www.geogebra.org/installers/deb.php
pascal@10 4 TARBALL=geogebra.deb
pascal@10 5
pascal@29 6 wget -O $TARBALL $WGET_URL
pascal@10 7
pascal@29 8 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_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@11 21 TARBALL=${PACKAGE}_$VERSION.deb
pascal@10 22 mv $PACKAGE $PACKAGE-$VERSION
pascal@10 23
pascal@10 24 set +e