get-scripts annotate bitcoin @ rev 34
Add sublime-text-3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 23 08:59:52 2015 +0100 (2015-03-23) |
parents | 8b66f6a75a05 |
children | 4e2636029105 |
rev | line source |
---|---|
pascal@34 | 1 SHORT_DESC="New digital currency for instant payments to anyone, anywhere." |
pascal@34 | 2 # end of get.list data |
pascal@0 | 3 WEB_SITE="http://$PACKAGE.org/" |
pascal@0 | 4 MAINTAINER="somebody@$PACKAGE.org" |
pascal@0 | 5 DEPENDS="libQtGui libQtNetwork bzlib" |
pascal@7 | 6 LICENSE="MIT" |
pascal@0 | 7 |
pascal@0 | 8 # Download tarball |
pascal@7 | 9 case "$PACKAGE" in |
pascal@7 | 10 bitcoin) |
pascal@7 | 11 WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE/en/download | sed \ |
pascal@7 | 12 '/linux.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||') ;; |
pascal@7 | 13 litecoin) |
pascal@7 | 14 WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE | sed \ |
pascal@7 | 15 '/linux.tar/!d;;s/.*href="\([^"]*\).*/\1/;q') ;; |
pascal@7 | 16 esac |
pascal@0 | 17 case "$WGET_URL" in |
pascal@0 | 18 ftp*|http*);; |
pascal@0 | 19 *) WGET_URL=$WEB_SITE$WGET_URL;; |
pascal@0 | 20 esac |
pascal@0 | 21 TARBALL="$(basename $WGET_URL)" |
pascal@0 | 22 VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')" |
pascal@0 | 23 wget --no-check-certificate -O $TARBALL "$WGET_URL" |
pascal@0 | 24 |
pascal@0 | 25 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting." |
pascal@0 | 26 |
pascal@0 | 27 mkdir -p $PACKAGE-$VERSION/fs/usr/bin |
pascal@7 | 28 busybox tar xf $TARBALL |
pascal@0 | 29 |
pascal@0 | 30 mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin |
pascal@0 | 31 rm -rf $PACKAGE-$VERSION-linux |
pascal@0 | 32 |
pascal@0 | 33 # extracted pkg can be removed: Save RAM |
pascal@0 | 34 rm -f $TARBALL |
pascal@0 | 35 |
pascal@0 | 36 cd $PACKAGE-$VERSION/fs |
pascal@0 | 37 |
pascal@0 | 38 # Create menu |
pascal@0 | 39 mkdir -p usr/share/applications |
pascal@0 | 40 cat > usr/share/applications/$PACKAGE.desktop <<EOT |
pascal@0 | 41 [Desktop Entry] |
pascal@0 | 42 Version=1.0 |
pascal@0 | 43 Encoding=UTF-8 |
pascal@0 | 44 Name=$PACKAGE |
pascal@0 | 45 Exec=/usr/bin/$PACKAGE-qt |
pascal@0 | 46 Icon=stock_certificate.png |
pascal@0 | 47 Terminal=false |
pascal@0 | 48 Categories=Application |
pascal@0 | 49 Comment=$SHORT_DESC |
pascal@0 | 50 Type=Application |
pascal@0 | 51 Categories=Office; |
pascal@0 | 52 EOT |
pascal@0 | 53 cd ../.. |
pascal@2 | 54 set +e |