desktop/BlockstreamGreen: Added (A Bitcoin Wallet).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
af077ccc0a
commit
88f3f29fc7
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Exec=/opt/BlockstreamGreen/BlockstreamGreen-x86_64.AppImage
|
||||
Name=Blockstream Green
|
||||
Icon=BlockstreamGreen
|
|
@ -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"
|
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
|
@ -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.
|
|
@ -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
|
|
@ -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:
|
Loading…
Reference in New Issue