blob: 1e5195393afe9dd562f3767b7297a612451904a6 (
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: Vyacheslav Konovalov <🦀vk@protonmail.com>
pkgname=nym-wallet
pkgver=1.2.15
pkgrel=1
pkgdesc='The next generation of privacy infrastructure (Nym Wallet)'
arch=('x86_64')
url='https://nymtech.net/'
license=('MIT')
depends=('openssl' 'pango' 'gdk-pixbuf2' 'webkit2gtk' 'librsvg' 'libbsd')
optdepends=('libappindicator-gtk3: system tray support')
makedepends=('git' 'cargo' 'nodejs' 'npm' 'yarn' 'patchelf')
source=()
sha512sums=()
_datadir="src-tauri/target/release/bundle/deb/nym-wallet_${pkgver}_amd64/data"
prepare() {
# NOTE: Build process requires cloned git repo
git clone https://github.com/nymtech/nym.git -b nym-wallet-v$pkgver
sed -ri 's/"targets": .+,/"targets": ["deb"],/' nym/nym-wallet/src-tauri/tauri.conf.json
}
build() {
cd nym/nym-wallet
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
yarn install --network-timeout 60000 --cache-folder "$srcdir/yarn-cache"
yarn build
sed -ri \
-e 's|^Categories=.+|Categories=Network;Finance;|' \
-e 's|^Exec=.+|Exec=/usr/bin/nym-wallet|' \
-e 's|^Name=.+|Name=Nym Wallet|' \
$_datadir/usr/share/applications/nym-wallet.desktop
}
package() {
cd nym
cp -r "nym-wallet/$_datadir/usr" "$pkgdir/"
install -Dm644 LICENSES/MIT.txt "$pkgdir/usr/share/licenses/nym-wallet/LICENSE"
}
|