get-scripts annotate geogebra @ rev 54
Add zd1201-firmware
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 23 13:31:41 2016 +0200 (2016-04-23) |
parents | f76c7e17c9f5 |
children | 62d94e6800db |
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@39 | 5 WGET_URL="http://www.geogebra.net/linux/pool/main/g/" |
pascal@39 | 6 WGET_URL="$WGET_URL$(wget -O - "$WGET_URL?C=M;O=D" | \ |
pascal@39 | 7 sed '/href="g/!d;s/.*href="\([^"]*\).*/\1/;q')" |
pascal@39 | 8 WGET_URL="$WGET_URL$(wget -O - "$WGET_URL?C=M;O=D" | \ |
pascal@39 | 9 sed '/href/!d;/i386/!d;s/.*href="\([^"]*\).*/\1/;q')" |
pascal@39 | 10 TARBALL=$(basename $WGET_URL) |
pascal@10 | 11 |
pascal@29 | 12 wget -O $TARBALL $WGET_URL |
pascal@10 | 13 |
pascal@29 | 14 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting." |
pascal@10 | 15 |
pascal@10 | 16 mkdir $PACKAGE |
pascal@10 | 17 dpkg-deb -e $TARBALL $PACKAGE/meta |
pascal@10 | 18 dpkg-deb -x $TARBALL $PACKAGE/fs |
pascal@10 | 19 # extracted pkg can be removed: Save RAM |
pascal@10 | 20 rm -f $TARBALL |
pascal@10 | 21 sed '/^Description:/,$!d;s/^Description://' \ |
pascal@10 | 22 < $PACKAGE/meta/control > $PACKAGE/description.txt |
pascal@10 | 23 |
pascal@10 | 24 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)" |
pascal@10 | 25 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" |
pascal@10 | 26 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" |
pascal@11 | 27 TARBALL=${PACKAGE}_$VERSION.deb |
pascal@10 | 28 mv $PACKAGE $PACKAGE-$VERSION |