blob: b86b782c27f049b44d2f2ac6494fcdbe461f8d2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: bitcoinlizard <bitcoinlizard@fastmail.com>
pkgname=specter-desktop
pkgver=1.4.5
pkgrel=1
pkgdesc="Specter Desktop functions as a watch-only coordinator for multi-signature and single-key Bitcoin wallets."
arch=('any')
url="https://specter.solutions"
license=('MIT')
makedepends=('python-setuptools')
depends=('python' 'libusb' 'systemd-libs' 'python-dotenv' 'python-flask' 'python-flask-login' 'python-flask-wtf' 'python-mnemonic' 'python-hwilib' 'python-embit-git' 'python-flask-cors' 'python-pgpy' 'python-pyopenssl' 'python-stem'
'python-typing_extensions' 'python-psutil' 'python-hidapi' 'python-ecdsa' 'python-protobuf' 'python-importlib-metadata' 'python-daemonize' 'python-noiseprotocol-git' 'python-wheel' 'python-pyasn1' 'python-cbor')
source=("https://github.com/cryptoadvance/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
'specter.service'
'version.patch')
sha256sums=('c485931607fd8a063c494c8bbe4e888b62bc17eff78c0aec4eb817f06e5848a5'
'9b5f57a0ebd48e6b7d1ac240913e4b502a6e3ffc5b64ff87ed263f1a4810a265'
'ec0994d82f71abbe62e0a40c1f084a1718aded9e77cca63b41e4c400c9eb7962')
prepare() {
cd "${pkgname}-${pkgver}"
patch --forward --strip=1 --input="${srcdir}/version.patch"
}
build() {
cd "${pkgname}-${pkgver}"
python setup.py sdist bdist_wheel
}
package() {
cd "${pkgname}-${pkgver}"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
# install systemd file
install -Dm 644 "${srcdir}"/*.service -t "${pkgdir}"/usr/lib/systemd/system
# Install license since the package doesn't include it
install -Dm 644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|