blob: 9ae4c5583497d44e75558f365b997db2b9aa26cc (
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
44
45
46
47
48
|
# Maintainer: GI Jack <GI_Jack@hackermail.com>
pkgname=zecwallet-lite
pkgver=1.4.5
pkgrel=1
pkgdesc="Z-Addr first, Sapling compatible lightwallet client for Zcash"
arch=('any')
url="https://github.com/adityapk00/zecwallet-lite"
license=('MIT')
depends=('electron')
makedepends=('rust' 'nodejs' 'yarn' 'npm')
provides=('zcash-wallet')
options=('!strip')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/adityapk00/zecwallet-lite/archive/v${pkgver}.tar.gz"
"zecwallet-icons.tar.xz"
"${pkgname}.desktop"
)
sha256sums=('6c00e4a22ab86c4f1396e1a53df18de4578b245b202aa44e117189551bbd89ae'
'19d8b4acee2c6ff062e86ecbb2365123d0471f2991192323780b53630104574d'
'a53083250c61d1e43cf3b5c371222bb5740e2befcdc4d9b7ea003a1f4ac30ef4')
prepare() {
cd "${pkgname}-${pkgver}"
#yarn lint-fix
yarn install
}
build() {
cd "$pkgname-$pkgver"
yarn package-linux
}
package() {
cd ${srcdir}
install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
cd "${pkgname}-${pkgver}"
install -d "${pkgdir}/opt/${pkgname}/"
cp -ra release/linux-unpacked/* "${pkgdir}/opt/${pkgname}/"
cd ..
# Icons
cd ${srcdir}/zecwallet-icons
resolutions="16x16 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024"
for res in ${resolutions};do
install -Dm644 "${res}/apps/zecwallet-lite.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/zecwallet-lite.png"
done
}
|