get-scripts view geogebra @ rev 62

Kiwix; fix WEB_SITE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 02 09:28:45 2016 +0200 (2016-08-02)
parents f76c7e17c9f5
children 62d94e6800db
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.net/linux/pool/main/g/"
6 WGET_URL="$WGET_URL$(wget -O - "$WGET_URL?C=M;O=D" | \
7 sed '/href="g/!d;s/.*href="\([^"]*\).*/\1/;q')"
8 WGET_URL="$WGET_URL$(wget -O - "$WGET_URL?C=M;O=D" | \
9 sed '/href/!d;/i386/!d;s/.*href="\([^"]*\).*/\1/;q')"
10 TARBALL=$(basename $WGET_URL)
12 wget -O $TARBALL $WGET_URL
14 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
16 mkdir $PACKAGE
17 dpkg-deb -e $TARBALL $PACKAGE/meta
18 dpkg-deb -x $TARBALL $PACKAGE/fs
19 # extracted pkg can be removed: Save RAM
20 rm -f $TARBALL
21 sed '/^Description:/,$!d;s/^Description://' \
22 < $PACKAGE/meta/control > $PACKAGE/description.txt
24 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
25 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
26 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
27 TARBALL=${PACKAGE}_$VERSION.deb
28 mv $PACKAGE $PACKAGE-$VERSION