blob: dcc8373d1d78a9a186cdf786b789485266b18e85 (
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: Axel Gembe <derago@gmail.com>
pkgname=electron-cash-bin
pkgdesc='Lightweight Bitcoin Cash wallet'
pkgver=4.2.7
pkgrel=1
pkgbin=electron-cash
url='http://www.electroncash.org/'
arch=('x86_64')
license=('MIT')
depends=('ttf-bitstream-vera')
provides=('electron-cash')
conflicts=('electron-cash')
github='https://github.com/Electron-Cash/Electron-Cash'
appimage="Electron-Cash-${pkgver}-${arch}.AppImage"
validpgpkeys=(D56C110F4555F371AEEFCB254FD06489EFF1DDE1 # Jonald Fyookball <jonf@electroncash.org>
D465135F97D0047E18E99DC321810A542031C02C # Calin Culianu <calin.culianu@gmail.com>
)
source_x86_64=(
"${github}/releases/download/${pkgver}/${appimage}"
"${appimage}.asc::${github}/releases/download/${pkgver}/${appimage}.asc"
)
sha256sums_x86_64=('d180a31fce3150603f73e2553024cd1e32dcd1336e0c01da12c6df1295698238'
'SKIP')
package() {
# Extract files
chmod +x "$srcdir/$appimage"
$srcdir/$appimage --appimage-extract
# Clean old build dir files
rm -rf $srcdir/$pkgbin
mv -f "$srcdir/squashfs-root" "$srcdir/$pkgbin"
# Install Icon
install -Dm644 "$srcdir/$pkgbin/electron-cash.png" "$pkgdir/usr/share/pixmaps/$pkgbin.png"
install -d "$pkgdir/opt/$pkgbin"
cp -a "$srcdir/$pkgbin/." "$pkgdir/opt/$pkgbin/"
chmod -R +rx "$pkgdir/opt/$pkgbin"
install -d "$pkgdir/usr/bin"
ln -s "/opt/$pkgbin/AppRun" "$pkgdir/usr/bin/$pkgbin"
install -Dm644 "$srcdir/$pkgbin/$pkgbin.desktop" "$pkgdir/usr/share/applications/$pkgbin.desktop"
}
|