get-scripts rev 0
Add opera bitcoin litecoin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 16 13:13:26 2014 +0000 (2014-02-16) |
parents | |
children | 1b9497240a07 |
files | bitcoin litecoin opera |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bitcoin Sun Feb 16 13:13:26 2014 +0000 1.3 @@ -0,0 +1,45 @@ 1.4 +WEB_SITE="http://$PACKAGE.org/" 1.5 +SHORT_DESC="New digital currency for instant payments to anyone, anywhere." 1.6 +MAINTAINER="somebody@$PACKAGE.org" 1.7 +DEPENDS="libQtGui libQtNetwork bzlib" 1.8 + 1.9 +# Download tarball 1.10 +WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE/en/download | sed \ 1.11 + '/linux.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||') 1.12 +case "$WGET_URL" in 1.13 +ftp*|http*);; 1.14 +*) WGET_URL=$WEB_SITE$WGET_URL;; 1.15 +esac 1.16 +TARBALL="$(basename $WGET_URL)" 1.17 +VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')" 1.18 +wget --no-check-certificate -O $TARBALL "$WGET_URL" 1.19 + 1.20 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting." 1.21 + 1.22 +mkdir -p $PACKAGE-$VERSION/fs/usr/bin 1.23 +tar xzf $TARBALL 1.24 + 1.25 +mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin 1.26 +rm -rf $PACKAGE-$VERSION-linux 1.27 + 1.28 +# extracted pkg can be removed: Save RAM 1.29 +rm -f $TARBALL 1.30 + 1.31 +cd $PACKAGE-$VERSION/fs 1.32 + 1.33 +# Create menu 1.34 +mkdir -p usr/share/applications 1.35 +cat > usr/share/applications/$PACKAGE.desktop <<EOT 1.36 +[Desktop Entry] 1.37 +Version=1.0 1.38 +Encoding=UTF-8 1.39 +Name=$PACKAGE 1.40 +Exec=/usr/bin/$PACKAGE-qt 1.41 +Icon=stock_certificate.png 1.42 +Terminal=false 1.43 +Categories=Application 1.44 +Comment=$SHORT_DESC 1.45 +Type=Application 1.46 +Categories=Office; 1.47 +EOT 1.48 +cd ../..
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/litecoin Sun Feb 16 13:13:26 2014 +0000 2.3 @@ -0,0 +1,45 @@ 2.4 +set -x 2.5 +WEB_SITE="http://$PACKAGE.org/" 2.6 +SHORT_DESC="New digital currency for instant payments to anyone, anywhere." 2.7 +MAINTAINER="somebody@$PACKAGE.org" 2.8 +DEPENDS="libQtGui libQtNetwork bzlib" 2.9 + 2.10 +# Download tarball 2.11 +WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE | sed '/linux.tar/!d;;s/.*href="\([^"]*\).*/\1/;q') 2.12 +case "$WGET_URL" in 2.13 +ftp*|http*);; 2.14 +*) WGET_URL=$WEB_SITE$WGET_URL;; 2.15 +esac 2.16 +TARBALL="$(basename $WGET_URL)" 2.17 +VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')" 2.18 +wget --no-check-certificate -O $TARBALL "$WGET_URL" 2.19 + 2.20 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting." 2.21 + 2.22 +mkdir -p $PACKAGE-$VERSION/fs/usr/bin 2.23 +busybox tar xf $TARBALL 2.24 + 2.25 +mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin 2.26 +rm -rf $PACKAGE-$VERSION-linux 2.27 + 2.28 +# extracted pkg can be removed: Save RAM 2.29 +rm -f $TARBALL 2.30 + 2.31 +cd $PACKAGE-$VERSION/fs 2.32 + 2.33 +# Create menu 2.34 +mkdir -p usr/share/applications 2.35 +cat > usr/share/applications/$PACKAGE.desktop <<EOT 2.36 +[Desktop Entry] 2.37 +Version=1.0 2.38 +Encoding=UTF-8 2.39 +Name=$PACKAGE 2.40 +Exec=/usr/bin/$PACKAGE-qt 2.41 +Icon=stock_certificate.png 2.42 +Terminal=false 2.43 +Categories=Application 2.44 +Comment=$SHORT_DESC 2.45 +Type=Application 2.46 +Categories=Office; 2.47 +EOT 2.48 +cd ../..
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/opera Sun Feb 16 13:13:26 2014 +0000 3.3 @@ -0,0 +1,85 @@ 3.4 +WEB_SITE="http://www.opera.com/" 3.5 +URL=http://mirror.switch.ch/ftp/mirror/opera/linux/ 3.6 + 3.7 +get_releases() 3.8 +{ 3.9 + wget -qO- "$URL?C=M;O=D" | sed 's|.*[Ff]="\([^"/]*\).*|\1|;/[^0-9b]/d' 3.10 +} 3.11 + 3.12 +# Download deb 3.13 +for RELEASE in $@ $(get_releases); do 3.14 + TARBALL=$(wget -O- "$URL$RELEASE/" 2>/dev/null |sed 's|.*[Ff]="\(.*\)".*|\1|;/6.d/!d;q'|sed 's/".*//') 3.15 + [ -n "$TARBALL" ] || continue 3.16 + WGET_URL=$URL$RELEASE/$TARBALL 3.17 + wget $WGET_URL 3.18 + [ -s $TARBALL ] && break 3.19 +done 3.20 + 3.21 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting." 3.22 + 3.23 +mkdir $PACKAGE 3.24 +dpkg-deb -e $TARBALL $PACKAGE/meta 3.25 +dpkg-deb -x $TARBALL $PACKAGE/fs 3.26 +# extracted pkg can be removed: Save RAM 3.27 +rm -f $TARBALL 3.28 +sed '/^Description:/,$!d;s/^Description://' \ 3.29 + < $PACKAGE/meta/control > $PACKAGE/description.txt 3.30 + 3.31 +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)" 3.32 +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" 3.33 +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" 3.34 +mv $PACKAGE $PACKAGE-$VERSION 3.35 +cd $PACKAGE-$VERSION/fs 3.36 + 3.37 +# Create menu 3.38 +mkdir -p usr/share/applications 3.39 +cat > usr/share/applications/opera-browser.desktop <<EOT 3.40 +[Desktop Entry] 3.41 +Version=1.0 3.42 +TryExec=opera 3.43 +Encoding=UTF-8 3.44 +Name=Opera 3.45 +Name[af]=opera 3.46 +Name[eo]=Opero 3.47 +Name[zu]=I Opera 3.48 +GenericName=Web browser 3.49 +GenericName[bs]=Web preglednik 3.50 +GenericName[de]=Web-Browser 3.51 +GenericName[eo]=TTT-rigardilo 3.52 +GenericName[es]=Navegador web 3.53 +GenericName[et]=Veebibrauser 3.54 +GenericName[eu]=Web arakatzailea 3.55 +GenericName[fi]=WWW-selain 3.56 +GenericName[fr]=Un navigateur web 3.57 +GenericName[is]=Vafri 3.58 +GenericName[it]=Browser Web 3.59 +GenericName[nl]=webbrowser 3.60 +GenericName[nn]=Nettlesar 3.61 +GenericName[pt]=Navegador Web 3.62 +GenericName[pt_BR]=Navegador 3.63 +GenericName[ro]=Navigator de web 3.64 +GenericName[sl]=Spletni brskalnik 3.65 +GenericName[ven]=Buronza ya Webu 3.66 +GenericName[xh]=Umkhangeli Zincwadi Zokubhaliweyo 3.67 +GenericName[zu]=Umkhangeli zincwadi we Web 3.68 +Exec=opera %u 3.69 +Terminal=false 3.70 +Categories=Application;Qt;Network;WebBrowser;X-Ximian-Main;X-Ximian-Toplevel 3.71 +Icon=opera-browser 3.72 +MimeType=text/html;text/xml;application/xhtml+xml;application/x-mimearchive;application/xml;application/rss+xml;application/rdf+xml;image/svg+xml;image/gif;image/jpeg;image/png;image/x-bmp;image/x-xbm;application/mime 3.73 +Comment=Web Browser 3.74 +Type=Application 3.75 +EOT 3.76 +cd ../.. 3.77 + 3.78 +# Remove unwanted locale 3.79 +mv $PACKAGE-$VERSION/fs/usr/share/opera/locale $PACKAGE-$VERSION/fs/usr/share/opera/locale-full 3.80 +mkdir -p $PACKAGE-$VERSION/fs/usr/share/opera/locale 3.81 +. /etc/locale.conf 3.82 +for i in $LANG ${LANG/_/-} ${LANG:0:2} fr pt de zh-cn ; do 3.83 + [ -d $PACKAGE-$VERSION/fs/usr/share/opera/locale-full/$i ] && 3.84 + cp -a $PACKAGE-$VERSION/fs/usr/share/opera/locale-full/$i \ 3.85 + $PACKAGE-$VERSION/fs/usr/share/opera/locale 3.86 +done 3.87 +rm -rf $PACKAGE-$VERSION/fs/usr/share/opera/locale-full 3.88 +rm -rf $PACKAGE-$VERSION/fs/usr/share/pixmaps