aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorMichał Adamski <michal@ert.pl>2020-11-17 13:20:38 +0100
committerTBK <tbk@jjtc.eu>2021-01-02 00:50:06 +0000
commit7591eac983732e80bc8949ef93df01a5f26744fc (patch)
treec7f4cda33ac03d9f0149277dfac81f1b44f8897a /community
parentd481a3b03b451dd5f948feb28de3f45fa4e537a1 (diff)
downloadaports-7591eac983732e80bc8949ef93df01a5f26744fc.tar.gz
aports-7591eac983732e80bc8949ef93df01a5f26744fc.tar.bz2
aports-7591eac983732e80bc8949ef93df01a5f26744fc.tar.xz
community/electrum: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/electrum/0001-apk-add-instead-of-apt-get-install.patch22
-rw-r--r--community/electrum/APKBUILD45
2 files changed, 67 insertions, 0 deletions
diff --git a/community/electrum/0001-apk-add-instead-of-apt-get-install.patch b/community/electrum/0001-apk-add-instead-of-apt-get-install.patch
new file mode 100644
index 0000000000..29d2201510
--- /dev/null
+++ b/community/electrum/0001-apk-add-instead-of-apt-get-install.patch
@@ -0,0 +1,22 @@
+From 46e1404ddad66422bd2106ff6e6954741191826e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20Adamski?= <michal@ert.pl>
+Date: Wed, 14 Oct 2020 11:06:33 +0200
+Subject: [PATCH] `apk add` instead of `apt-get install`
+
+
+diff --git a/electrum/gui/qt/__init__.py b/electrum/gui/qt/__init__.py
+index 1e1d2831f..b7fe2c42d 100644
+--- a/electrum/gui/qt/__init__.py
++++ b/electrum/gui/qt/__init__.py
+@@ -34,7 +34,7 @@ from typing import Optional, TYPE_CHECKING, List
+ try:
+ import PyQt5
+ except Exception:
+- sys.exit("Error: Could not import PyQt5 on Linux systems, you may try 'sudo apt-get install python3-pyqt5'")
++ sys.exit("Error: Could not import PyQt5 on Linux systems, you may try 'sudo apk add py3-qt5'")
+
+ from PyQt5.QtGui import QGuiApplication
+ from PyQt5.QtWidgets import (QApplication, QSystemTrayIcon, QWidget, QMenu,
+--
+2.25.1
+
diff --git a/community/electrum/APKBUILD b/community/electrum/APKBUILD
new file mode 100644
index 0000000000..54af5244b3
--- /dev/null
+++ b/community/electrum/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Michał Adamski <michal@ert.pl>
+pkgname=electrum
+pkgver=4.0.5
+pkgrel=0
+pkgdesc="Lightweight Bitcoin Wallet"
+url="https://electrum.org/"
+arch="noarch"
+license="MIT"
+depends="
+ libsecp256k1
+ python3
+ py3-aiohttp
+ py3-aiohttp-socks
+ py3-aiorpcx
+ py3-attrs
+ py3-bitstring
+ py3-certifi
+ py3-dnspython
+ py3-ecdsa
+ py3-protobuf
+ py3-pycryptodomex
+ py3-qrcode
+ "
+
+makedepends="py3-setuptools"
+source="
+ https://download.electrum.org/$pkgver/Electrum-$pkgver.tar.gz
+ 0001-apk-add-instead-of-apt-get-install.patch
+"
+builddir="$srcdir/Electrum-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py check
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+ rm -r "${pkgdir:?}"/home
+}
+sha512sums="573ba287945bfed2c4bf97976b76cd80c4ba846c0806a47c3dc2bbd6a2d70f515eb32b58aef9ff8e56a7929bb594c64ee1829bc1a351405d3b7872972c8ceac6 Electrum-4.0.5.tar.gz
+ccc8b3e286369a76d396e52e3db9b20a493dec179346a64a2fe4266d3ab1d775c07cf742d9c602f606030ecd95589a27f709e5f4b7b996fa5ccc0feb854dda9b 0001-apk-add-instead-of-apt-get-install.patch"