# HG changeset patch # User Pascal Bellard # Date 1392556406 0 # Node ID 82a491ecdeb503b9760a9e5e8731e70077c536a2 Add opera bitcoin litecoin diff -r 000000000000 -r 82a491ecdeb5 bitcoin --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bitcoin Sun Feb 16 13:13:26 2014 +0000 @@ -0,0 +1,45 @@ +WEB_SITE="http://$PACKAGE.org/" +SHORT_DESC="New digital currency for instant payments to anyone, anywhere." +MAINTAINER="somebody@$PACKAGE.org" +DEPENDS="libQtGui libQtNetwork bzlib" + +# Download tarball +WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE/en/download | sed \ + '/linux.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||') +case "$WGET_URL" in +ftp*|http*);; +*) WGET_URL=$WEB_SITE$WGET_URL;; +esac +TARBALL="$(basename $WGET_URL)" +VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')" +wget --no-check-certificate -O $TARBALL "$WGET_URL" + +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting." + +mkdir -p $PACKAGE-$VERSION/fs/usr/bin +tar xzf $TARBALL + +mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin +rm -rf $PACKAGE-$VERSION-linux + +# extracted pkg can be removed: Save RAM +rm -f $TARBALL + +cd $PACKAGE-$VERSION/fs + +# Create menu +mkdir -p usr/share/applications +cat > usr/share/applications/$PACKAGE.desktop < usr/share/applications/$PACKAGE.desktop </dev/null |sed 's|.*[Ff]="\(.*\)".*|\1|;/6.d/!d;q'|sed 's/".*//') + [ -n "$TARBALL" ] || continue + WGET_URL=$URL$RELEASE/$TARBALL + wget $WGET_URL + [ -s $TARBALL ] && break +done + +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting." + +mkdir $PACKAGE +dpkg-deb -e $TARBALL $PACKAGE/meta +dpkg-deb -x $TARBALL $PACKAGE/fs +# extracted pkg can be removed: Save RAM +rm -f $TARBALL +sed '/^Description:/,$!d;s/^Description://' \ + < $PACKAGE/meta/control > $PACKAGE/description.txt + +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)" +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" +mv $PACKAGE $PACKAGE-$VERSION +cd $PACKAGE-$VERSION/fs + +# Create menu +mkdir -p usr/share/applications +cat > usr/share/applications/opera-browser.desktop <