blob: 5c71cb57588ec7e673672a1800611df850e2995f (
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
|
# Maintainer: wtzb <>
pkgname=mycrypto-bin
pkgbin=mycrypto
pkgver=1.7.17
pkgrel=1
pkgdesc='Open-source, client-side tool for generating Ether Wallets, handling ERC-20 tokens, and interacting with the blockchain more easily'
package="linux-x86-64_${pkgver}_MyCrypto.AppImage"
arch=('x86_64')
provides=('mycrypto')
conflicts=('mycrypto')
depends=('gconf')
url='https://github.com/MyCryptoHQ/MyCrypto'
license=('MIT')
source=("${url}/releases/download/${pkgver}/${package}"
'LICENSE')
sha256sums=('20eb48989b5ae5e60e438eff6830ac79a0d89ac26dff058097260e747e866444'
'1b0a4ebe6200441fe008bba2b60bb227b944cd77427b3f9c60f6f7e32120a65d')
package() {
# Extract files
chmod +x "$srcdir/$package"
`$srcdir/$package --appimage-extract &>/dev/null`
# Clean old build dir files
rm -rf $srcdir/$pkgbin
mv -f "$srcdir/squashfs-root" "$srcdir/$pkgbin"
# Install Icon
install -Dm644 "$srcdir/$pkgbin/usr/share/icons/hicolor/0x0/apps/$pkgbin.png" -t "$pkgdir/usr/share/icons/hicolor/256x256/apps/"
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/app/$pkgbin" "$pkgdir/usr/bin/$pkgbin"
# Provided .desktop file tries to run "AppRun" instead of mycrypto
sed -e "s/AppRun/$pkgbin/g" -i $srcdir/$pkgbin/$pkgbin.desktop
install -Dm644 "$srcdir/$pkgbin/$pkgbin.desktop" "$pkgdir/usr/share/applications/$pkgbin.desktop"
}
|