summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d55c19c9be22ec8fe812aa02c2ba92d4369266fc (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: mehalter <micah at mehalter.com>
# Contributor: xsmile <>

pkgname=myetherwallet
_pkgname=MyEtherWallet
pkgver=5.3.3
_pkgversuffix=
pkgrel=1
pkgdesc='Client-side interface for interacting with the Ethereum blockchain'
arch=(any)
depends=(xdg-utils)
url=https://github.com/MyEtherWallet/MyEtherWallet
license=(MIT)
source=($url/releases/download/v$pkgver$_pkgversuffix/$_pkgname-v$pkgver$_pkgversuffix.zip{,.sig}
        myetherwallet.desktop
        myetherwallet
        LICENSE)
sha256sums=('2105e1463eb3c38a469b069b3e7c1a1d47e734cca17f0c731a9aee77408a3bf3'
            'SKIP'
            'b49e3bb0cded23c40820281a110d2baed5d1f7aa036635108323d0133e0e30e9'
            '814f489e4e6e0ce172513febf58d6821e7b77cd2e644152aec4888228fe41da5'
            '42039cf560b0b2b35463f33656d9639c8f9b98e9a4f57723dbab0a90a4ad8ad6')
validpgpkeys=('2FCA4A1E3AF4278F7AD3B7637F059C0F7B9A12F0')

prepare() {
  # Remove JS source maps
  find . -name "*.map" -delete
  # Remove development versions of JS files
  find . -name "*.dev.js" -delete
}

package() {
  # Lib directory
  install -d "$pkgdir"/opt/$pkgname
  cp -a css fonts img js workbox-* *.css *.html *.js *.png "$pkgdir"/opt/$pkgname
  # Executable
  install -Dm755 "$srcdir"/$pkgname -t "$pkgdir"/usr/bin
  # License
  install -Dm644 "$srcdir"/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
  # Menu entry and icon
  install -Dm644 "$srcdir"/$pkgname.desktop -t "$pkgdir"/usr/share/applications
  install -Dm644 favicon.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
}