diff options
author | David Ferrone <zapwai@gmail.com> | 2022-04-30 10:33:32 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-30 13:52:14 +0700 |
commit | 88f3f29fc7f8c2a26bce207a4dbe0b92f018e81e (patch) | |
tree | b5439f88765492bf97755440292368154818431b /desktop/BlockstreamGreen | |
parent | af077ccc0a3b16ddfdff38201fbb5ba477579534 (diff) | |
download | slackbuilds-88f3f29fc7f8c2a26bce207a4dbe0b92f018e81e.tar.gz |
desktop/BlockstreamGreen: Added (A Bitcoin Wallet).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/BlockstreamGreen')
-rw-r--r-- | desktop/BlockstreamGreen/BlockstreamGreen | 22 | ||||
-rw-r--r-- | desktop/BlockstreamGreen/BlockstreamGreen.SlackBuild | 76 | ||||
-rw-r--r-- | desktop/BlockstreamGreen/BlockstreamGreen.desktop | 6 | ||||
-rw-r--r-- | desktop/BlockstreamGreen/BlockstreamGreen.info | 10 | ||||
-rw-r--r-- | desktop/BlockstreamGreen/BlockstreamGreen.png | bin | 0 -> 1471 bytes | |||
-rw-r--r-- | desktop/BlockstreamGreen/README | 5 | ||||
-rw-r--r-- | desktop/BlockstreamGreen/doinst.sh | 3 | ||||
-rw-r--r-- | desktop/BlockstreamGreen/slack-desc | 19 |
8 files changed, 141 insertions, 0 deletions
diff --git a/desktop/BlockstreamGreen/BlockstreamGreen b/desktop/BlockstreamGreen/BlockstreamGreen new file mode 100644 index 0000000000..10b936f662 --- /dev/null +++ b/desktop/BlockstreamGreen/BlockstreamGreen @@ -0,0 +1,22 @@ +#!/bin/sh +# Slackware wrapper for the Blockstream Green AppImage. +runme(){ + cd /opt/BlockstreamGreen + ./BlockstreamGreen-x86_64.AppImage "$@" +} + +if [ $UID == 0 ]; then + read -p "You are currently running as root...\ + Are you sure you want to proceed? (N/y): " resp + case "$resp" in + y|yes) + runme + ;; + *) + echo Exiting + exit 0 + ;; + esac +else + runme $@ +fi diff --git a/desktop/BlockstreamGreen/BlockstreamGreen.SlackBuild b/desktop/BlockstreamGreen/BlockstreamGreen.SlackBuild new file mode 100644 index 0000000000..4f87aacc86 --- /dev/null +++ b/desktop/BlockstreamGreen/BlockstreamGreen.SlackBuild @@ -0,0 +1,76 @@ +#!/bin/bash + +# Slackware build script for the AppImage Blockstream Green +# Copyright 2021 David Ferrone RI, USA +# All rights reserved. + +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=BlockstreamGreen +VERSION=${VERSION:-1.0.7} +SRC=BlockstreamGreen-x86_64.AppImage +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT + +mkdir $PKG/opt $PKG/opt/$PRGNAM +chown root:root $SRC +chmod 755 $SRC +cp $SRC $PKG/opt/$PRGNAM + +mkdir -p $PKG/usr $PKG/usr/doc $PKG/usr/bin +mkdir -p $PKG/usr/share $PKG/usr/share/pixmaps $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +cat $CWD/$PRGNAM > $PKG/usr/bin/$PRGNAM +chmod 755 $PKG/usr/bin/$PRGNAM + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/desktop/BlockstreamGreen/BlockstreamGreen.desktop b/desktop/BlockstreamGreen/BlockstreamGreen.desktop new file mode 100644 index 0000000000..47c8d763d4 --- /dev/null +++ b/desktop/BlockstreamGreen/BlockstreamGreen.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Terminal=false +Exec=/opt/BlockstreamGreen/BlockstreamGreen-x86_64.AppImage +Name=Blockstream Green +Icon=BlockstreamGreen diff --git a/desktop/BlockstreamGreen/BlockstreamGreen.info b/desktop/BlockstreamGreen/BlockstreamGreen.info new file mode 100644 index 0000000000..6304ed570b --- /dev/null +++ b/desktop/BlockstreamGreen/BlockstreamGreen.info @@ -0,0 +1,10 @@ +PRGNAM="BlockstreamGreen" +VERSION="1.0.7" +HOMEPAGE="https://blockstream.com/green/" +DOWNLOAD="https://github.com/Blockstream/green_qt/releases/download/release_1.0.7/BlockstreamGreen-x86_64.AppImage" +MD5SUM="38814e64c8d9b87ddaa0da96cf6838b4" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="David Ferrone" +EMAIL="zapwai@gmail.com" diff --git a/desktop/BlockstreamGreen/BlockstreamGreen.png b/desktop/BlockstreamGreen/BlockstreamGreen.png Binary files differnew file mode 100644 index 0000000000..f625a0c4b7 --- /dev/null +++ b/desktop/BlockstreamGreen/BlockstreamGreen.png diff --git a/desktop/BlockstreamGreen/README b/desktop/BlockstreamGreen/README new file mode 100644 index 0000000000..750dda2dbd --- /dev/null +++ b/desktop/BlockstreamGreen/README @@ -0,0 +1,5 @@ +Blockstream Green is a multi-platform Bitcoin and Liquid wallet. + +This script builds a Slackware package using the official binary. +The download is an AppImage which is placed in /opt +however source is also available on github. diff --git a/desktop/BlockstreamGreen/doinst.sh b/desktop/BlockstreamGreen/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/desktop/BlockstreamGreen/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/desktop/BlockstreamGreen/slack-desc b/desktop/BlockstreamGreen/slack-desc new file mode 100644 index 0000000000..83ab6c92cf --- /dev/null +++ b/desktop/BlockstreamGreen/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +BlockstreamGreen: BlockstreamGreen (A Bitcoin Wallet) +BlockstreamGreen: +BlockstreamGreen: Blockstream Green is a multi-platform Bitcoin and Liquid wallet. +BlockstreamGreen: It is available as an AppImage. +BlockstreamGreen: https://blockstream.com/green/ +BlockstreamGreen: +BlockstreamGreen: +BlockstreamGreen: +BlockstreamGreen: +BlockstreamGreen: +BlockstreamGreen: |