summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Ivan Kovmir <ikovmir@uninstance.cc>2023-01-12 18:15:21 +0000
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-14 08:50:05 +0700
commitd6905c085ad0f7b15e69b9933ea51842ab9677bb (patch)
tree2e61b87448579498fa9a5d4d1111dd67512177b5
parenta025ba876012bf5f5742bce6f5d4ee5bcddb1941 (diff)
downloadslackbuilds-d6905c085ad0f7b15e69b9933ea51842ab9677bb.tar.gz
slackbuilds-d6905c085ad0f7b15e69b9933ea51842ab9677bb.tar.xz
office/ledger-live: Added (Ledger Hardware Wallet Manager)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--office/ledger-live/20-hw1.rules14
-rw-r--r--office/ledger-live/README14
-rw-r--r--office/ledger-live/doinst.sh8
-rw-r--r--office/ledger-live/ledger-live.SlackBuild90
-rw-r--r--office/ledger-live/ledger-live.info10
-rw-r--r--office/ledger-live/slack-desc19
6 files changed, 155 insertions, 0 deletions
diff --git a/office/ledger-live/20-hw1.rules b/office/ledger-live/20-hw1.rules
new file mode 100644
index 0000000000..5928fd429c
--- /dev/null
+++ b/office/ledger-live/20-hw1.rules
@@ -0,0 +1,14 @@
+# HW.1 / Nano
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1b7c|2b7c|3b7c|4b7c", TAG+="uaccess", TAG+="udev-acl"
+# Blue
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0000|0000|0001|0002|0003|0004|0005|0006|0007|0008|0009|000a|000b|000c|000d|000e|000f|0010|0011|0012|0013|0014|0015|0016|0017|0018|0019|001a|001b|001c|001d|001e|001f", TAG+="uaccess", TAG+="udev-acl"
+# Nano S
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001|1000|1001|1002|1003|1004|1005|1006|1007|1008|1009|100a|100b|100c|100d|100e|100f|1010|1011|1012|1013|1014|1015|1016|1017|1018|1019|101a|101b|101c|101d|101e|101f", TAG+="uaccess", TAG+="udev-acl"
+# Aramis
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0002|2000|2001|2002|2003|2004|2005|2006|2007|2008|2009|200a|200b|200c|200d|200e|200f|2010|2011|2012|2013|2014|2015|2016|2017|2018|2019|201a|201b|201c|201d|201e|201f", TAG+="uaccess", TAG+="udev-acl"
+# HW2
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0003|3000|3001|3002|3003|3004|3005|3006|3007|3008|3009|300a|300b|300c|300d|300e|300f|3010|3011|3012|3013|3014|3015|3016|3017|3018|3019|301a|301b|301c|301d|301e|301f", TAG+="uaccess", TAG+="udev-acl"
+# Nano X
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0004|4000|4001|4002|4003|4004|4005|4006|4007|4008|4009|400a|400b|400c|400d|400e|400f|4010|4011|4012|4013|4014|4015|4016|4017|4018|4019|401a|401b|401c|401d|401e|401f", TAG+="uaccess", TAG+="udev-acl"
+# Ledger Test
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0005|5000|5001|5002|5003|5004|5005|5006|5007|5008|5009|500a|500b|500c|500d|500e|500f|5010|5011|5012|5013|5014|5015|5016|5017|5018|5019|501a|501b|501c|501d|501e|501f", TAG+="uaccess", TAG+="udev-acl" \ No newline at end of file
diff --git a/office/ledger-live/README b/office/ledger-live/README
new file mode 100644
index 0000000000..f006072b4b
--- /dev/null
+++ b/office/ledger-live/README
@@ -0,0 +1,14 @@
+A manager for your Ledger hardware wallet.
+Install applications, update firmware, buy crypto, etc.
+------------------------------------------------------------
+This SlackBuild downloads and installs the official AppImage
+under '/opt'.
+
+Official description (beware marketing buzzwords)
+================================================
+Ledger Live is our platform of apps and services integrated specifically
+to work with your Nano device. It functions as a secure gateway to the
+crypto ecosystem. This means accessing a variety of crypto, NFT and DeFi
+based services directly and seamlessly from your hardware wallet – a
+better, simpler user experience that bypasses a major security concern
+known as blind signing.
diff --git a/office/ledger-live/doinst.sh b/office/ledger-live/doinst.sh
new file mode 100644
index 0000000000..1f2229e32d
--- /dev/null
+++ b/office/ledger-live/doinst.sh
@@ -0,0 +1,8 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /sbin/udevadm ]; then
+ /sbin/udevadm control --reload-rules
+fi
+
diff --git a/office/ledger-live/ledger-live.SlackBuild b/office/ledger-live/ledger-live.SlackBuild
new file mode 100644
index 0000000000..9520caa461
--- /dev/null
+++ b/office/ledger-live/ledger-live.SlackBuild
@@ -0,0 +1,90 @@
+#!/bin/bash
+
+# Slackware build script for ledger-live
+
+# Copyright 2022 Ivan Kovmir <ikovmir@uninstance.cc>
+# 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=ledger-live
+VERSION=${VERSION:-2.51.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+ARCH="${ARCH:-$(uname -m)}"
+if [ "$ARCH" != "x86_64" ]; then
+ echo "$ARCH is not supported for $PRGNAM-$VERSION."
+ exit 1;
+fi
+
+if [ -n "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP="${TMP:-/tmp/SBo}"
+PKG="$TMP/package-$PRGNAM"
+OUTPUT="${OUTPUT:-/tmp}"
+
+APPIMGNAM="ledger-live-desktop-$VERSION-linux-$ARCH.AppImage"
+NAMVER="$PRGNAM-$VERSION"
+
+set -e
+
+rm -rf "$PKG"
+mkdir -p "$TMP" "$PKG" "$OUTPUT"
+mkdir -p "$PKG/install"
+mkdir -p "$PKG/lib/udev/rules.d"
+mkdir -p "$PKG/usr/doc/$NAMVER"
+mkdir -p "$PKG/usr/share/$NAMVER"
+mkdir -p "$PKG/usr/share/applications"
+mkdir -p "$PKG/usr/bin"
+mkdir -p "$PKG/opt"
+chmod 0755 "$CWD/$APPIMGNAM"
+cd "$PKG/opt"
+"$CWD/$APPIMGNAM" --appimage-extract
+mv squashfs-root "$NAMVER"
+
+# Strip symbols.
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+# Fix permissions.
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 -o -perm 700 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Executable and *.desktop file.
+ln -s "../../opt/$NAMVER/AppRun" "$PKG/usr/bin/$PRGNAM"
+ln -s "../../../opt/$NAMVER/ledger-live-desktop.desktop" "$PKG/usr/share/applications/$PRGNAM.desktop"
+# UDEV rules.
+cp "$CWD/20-hw1.rules" "$PKG/lib/udev/rules.d/20-h1.rules"
+
+cp "$CWD/$PRGNAM.SlackBuild" "$PKG/usr/doc/$NAMVER/$PRGNAM.SlackBuild"
+cp "$CWD/README" "$PKG/usr/doc/$NAMVER/README"
+cp "$CWD/slack-desc" "$PKG/install/slack-desc"
+cp "$CWD/doinst.sh" "$PKG/install/doinst.sh"
+
+cd "$PKG"
+/sbin/makepkg -l y -c n "$OUTPUT/$NAMVER-$ARCH-$BUILD$TAG.$PKGTYPE"
diff --git a/office/ledger-live/ledger-live.info b/office/ledger-live/ledger-live.info
new file mode 100644
index 0000000000..194277d165
--- /dev/null
+++ b/office/ledger-live/ledger-live.info
@@ -0,0 +1,10 @@
+PRGNAM="ledger-live"
+VERSION="2.51.0"
+HOMEPAGE="https://www.ledger.com/ledger-live"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://download.live.ledger.com/ledger-live-desktop-$VERSION-linux-x86_64.AppImage"
+MD5SUM_x86_64="988957132fd4055f961fb13d5bef4518"
+REQUIRES=""
+MAINTAINER="Ivan Kovmir"
+EMAIL="ikovmir@uninstance.cc"
diff --git a/office/ledger-live/slack-desc b/office/ledger-live/slack-desc
new file mode 100644
index 0000000000..b9ac3cfad1
--- /dev/null
+++ b/office/ledger-live/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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+ledger-live: ledger-live (Ledger Hardware Wallet Manager)
+ledger-live:
+ledger-live: A manager for your Ledger hardware wallet.
+ledger-live: Install applications, update firmware, buy crypto, etc.
+ledger-live:
+ledger-live:
+ledger-live:
+ledger-live:
+ledger-live:
+ledger-live: https://librewolf.net/
+ledger-live: