blob: 0c812a20a8fb7ad83845ed3e378fb6ffd8bbc631 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Maintainer: Afri 5chdn <aur@cach.co>
pkgname=mist-git
_pkgname=mist
pkgver=0.7.3.r164.geda396e
pkgrel=1
pkgdesc="Ethereum wallet for Ether accounts, wallets and smart contracts (includes Mist browser)."
arch=('i686' 'x86_64')
depends=(
'gmp'
'leveldb'
'qt5-base'
'qt5-declarative'
'qt5-quickcontrols'
'qt5-webengine'
'readline'
'gconf'
'libnotify'
)
makedepends=(
'nodejs'
'npm'
'meteor-js'
'meteor-build-client'
'gulp'
)
provides=(
'geth'
'mist'
'libnode'
)
conflicts=(
'geth'
'geth-git'
'go-ethereum'
'go-ethereum-git'
'mist'
'libnode'
'libnode-git'
)
optdepends=(
'ethereum: The cpp-ethereum commandline client.'
)
url="https://github.com/ethereum/mist"
license=('GPL')
source=(
"${pkgname}::git+https://github.com/ethereum/mist"
"mist.desktop"
"icon.png"
"mist-pathfix.patch"
)
sha256sums=(
"SKIP"
"d044844dd8ef1fef2ced861e5a86bf0d9af1b06ade6965dab1f12dbc612da207"
"f9dfeddf9730ab693e3dc69d6dd0ad48525de1e40e1c8fb46ed081a3e7bd5f93"
"3b5837e569b0d7b5b510a3084788c13faa51c7ff3777fcbea5dbee697a24ec74"
)
pkgver() {
cd ${srcdir}/${pkgname}
git checkout -q develop
git pull -q
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
msg2 'Building Mist...'
cd ${srcdir}/${pkgname}
git checkout develop
git pull
git submodule update --init
git apply "${srcdir}/mist-pathfix.patch"
npm install meteor-build-client
npm install gulp
npm install
gulp update-nodes
gulp wallet --platform linux
}
package() {
_arch="32"
if [ "${CARCH}" = "x86_64" ]; then
_arch="64"
fi
msg2 'Installing Mist...'
install -d "${pkgdir}/usr/share/mist"
cp -a "${srcdir}/${pkgname}/dist_wallet/Ethereum-Wallet-linux${_arch}/." "${pkgdir}/usr/share/${_pkgname}"
install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/mist"
install -d "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/mist.desktop" "${pkgdir}/usr/share/applications"
install -d "${pkgdir}/usr/bin"
ln -s "/usr/share/${_pkgname}/Ethereum-Wallet" "${pkgdir}/usr/bin/mist"
ln -s "/usr/share/${_pkgname}/resources/node/geth/geth" "${pkgdir}/usr/bin/geth"
install -Dm644 "${pkgdir}/usr/share/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
rm "${pkgdir}/usr/share/${_pkgname}/LICENSE"
msg2 'Installing Libnode...'
install -d "${pkgdir}/usr/lib"
ln -s "/usr/share/${_pkgname}/libnode.so" "${pkgdir}/usr/lib/libnode.so"
ln -sf "/usr/lib/libgcrypt.so.11" "${pkgdir}/usr/share/${_pkgname}/libgcrypt.so.11"
ln -sf "/usr/lib/libnotify.so.4" "${pkgdir}/usr/share/${_pkgname}/libnotify.so.4"
find "${pkgdir}" -type d -exec chmod 755 {} +
find "${pkgdir}" -type f -exec chmod 644 {} +
chmod 755 "${pkgdir}/usr/share/${_pkgname}/Ethereum-Wallet"
chmod 755 "${pkgdir}/usr/share/${_pkgname}/libnode.so"
chmod 755 "${pkgdir}/usr/share/${_pkgname}/resources/node/geth/geth"
}
|