blob: 41a0496f45d9c87e589a533b4f4135f7add6208f (
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: Jah Way <jahway603 at protonmail dot com>
pkgname=silentdragonlite
pkgver=2.0.2
pkgrel=3
pkgdesc='HUSH Lite wallet that supports z-addresses'
url='http://git.hush.is/hush/SilentDragonLite'
arch=('x86_64')
license=('GPL-3.0-or-later')
depends=('libsodium' 'qt5-websockets' 'qt5-base' 'qt5-tools')
makedepends=('qtcreator' 'rustup')
source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/v$pkgver.tar.gz"
'silentdragonlite.desktop'
'silentdragonlite.png')
sha512sums=('5140be37f6e43ed2d1dbb6df1c0c233bab8e14db27b25c0539808bea7b2a97d88dca1e6d3bb15248908e30304dfc79d414fd299c56f15cbf0fe45e116d02f6c2'
'580379c88ef67d15cf1ac1e14899a0159230a2fd59f2400b864ee4d6711f0fcef29ccf84562a3cbdb7caa021271a4fab8210e228c9279ab0854eb1c668f1debd'
'0b887786a3be6e0643f8d047b0c934036bb71d203e09e692bc2af056d8b23d8469feaff0f952642b1a087f09db159c692fe89aaa4e49802602c4044f9f0620a5')
# Default the required version of rustc for this to compile
# If rustc greater than 1.63 is used, then it does not compile as seen in
# https://git.hush.is/hush/SilentDragonLite/issues/89
prepare() {
rustup install 1.63
rustup default 1.63
}
build() {
cd "$pkgname"
./build.sh linguist
./build.sh
rustup default stable
}
package() {
install -Dm755 "${srcdir}/$pkgname/SilentDragonLite" "$pkgdir/opt/$pkgname/$pkgname"
install -Dm644 "${srcdir}/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "${srcdir}/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "${srcdir}/$pkgname.png" "$pkgdir/opt/$pkgname/$pkgname.png"
# links to /usr/bin
install -d "$pkgdir/usr/bin"
ln -s /opt/${pkgname}/silentdragonlite "$pkgdir/usr/bin"
}
|