summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba8f1371403d3725e5ebc2109278200c3c1b8ddc (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
49
50
51
52
53
54
55
# Maintainer: Peter Petrov <onestone@gmail.com>
# Contributor: Afri 5chdn <aur@5chdn.co>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>

pkgname=mist
pkgver=0.11.1
_strver=0-11-1
pkgrel=1
pkgdesc="Ethereum wallet and Dapp browser."
arch=('x86_64')
depends=(
  'alsa-lib'
  'gconf'
  'gtk2'
  'libnotify'
  'libxss'
  'libxtst'
  'nss'
)
provides=(
  'mist'
)
conflicts=(
  'mist-git'
)
optdepends=(
  'geth: The go-ethereum commandline client (geth cli).'
  'parity: The fast, light, robust Ethereum client.'
)
url="https://github.com/ethereum/mist"
license=('GPL')
sha256sums=('e3b3225869b7f1500c6be9d469bb481375fc3e22712a9da047663e44c5e9a47b'
            '02dd222eae64cc6ceb2d954f34e1ff49654b55951f49875408ffe2bf1cf13423'
            '0b3bebf887730b51c82ad37d58550908563000ad134b22738f4cb91375c96790')
source=(
  "${pkgname}-${_strver}-64.zip::https://github.com/ethereum/${pkgname}/releases/download/v${pkgver}/Mist-linux64-${_strver}.zip"
  "mist.desktop"
  "mist.png"
)

package() {
  msg2 'Installing Mist...'
  install -d "${pkgdir}/opt/mist"
  cp -a "${srcdir}/." "${pkgdir}/opt/mist"
  rm ${pkgdir}/opt/mist/mist-*.zip ${pkgdir}/opt/mist/mist.desktop ${pkgdir}/opt/mist/mist.png
  install -d "${pkgdir}/usr/share/applications"
  cp -aL "${srcdir}/mist.desktop" "${pkgdir}/usr/share/applications"
  install -d "${pkgdir}/usr/share/pixmaps"
  cp -aL "${srcdir}/mist.png" "${pkgdir}/usr/share/pixmaps"

  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  install -d "${pkgdir}/usr/bin"
  ln -s "/opt/mist/mist" "${pkgdir}/usr/bin/mist"
}