blob: 631c3d03a85c89e80adcae22806d4ac5732ac841 (
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
|
# Maintainer: Aurélien Desbrières <aurelien@hackers.camp>
# Maintainer (Arch): Jonathan la Cour <jon@lacour.me>
# Contributor (Arch): Patrick Glandien <patrick@synix.io>
# Contributor (Arch): William Grieshaber <me@zee.li>
# Contributor (Arch): portals <portals at riseup.net> Base on work of: 2bluesc <2bluesc at gmail.com> and mazzolino <maze+aur at strahlungsfrei.de>
# Contributor (Arch): Pieter Kokx <pieter@kokx.nl>
pkgname=armory
pkgver=0.96.3.99
pkgrel=1
pkgdesc="Full-featured Bitcoin wallet management application"
arch=(i686 x86_64)
url="https://github.com/goatpig/BitcoinArmory"
license=(AGPL3 MIT)
depends=(crypto++ swig qt4 qt5-tools python2 python2-twisted python2-pyqt4 python2-bsddb python2-psutil)
optdepends=('bitcoin-daemon: Communicate with the Bitcoin network')
provides=(armory)
conflicts=(armory armory-git armory-bin armory-goatpig-git)
install="${pkgname}.install"
# Signed hashes available at
# https://github.com/goatpig/BitcoinArmory/releases with GPG ID 8C5211764922589A
source=("https://github.com/goatpig/BitcoinArmory/releases/download/v${pkgver}/armory_${pkgver}_src.tar.gz"
'run-armory.sh')
sha512sums=('afe73e2f52834dead3f085eca3daf27406f64c30678d1b68ee3de47acb7d38a2c5ae2d326e686cce0a91f1cf97ea69e8f81d208da4d0e57a0b6c152482ef7059'
'af44a8edfdf751f3343a8bdf6fa21c125389de3435c4b03c7f581b980525a9f32af177f496830f847b70c8e2619c42908536698e0fd28f862f16083cf7396715')
prepare() {
msg 'Validating Checksums GPG signature...'
curl -sL https://github.com/goatpig/BitcoinArmory/releases/download/v${pkgver}/sha256sum.txt.asc -o sha256sum.txt.asc
gpg --recv-key 8C5211764922589A
gpg --verify sha256sum.txt.asc
msg2 'Checksums GPG signature OK.'
msg 'Validating Checksums...'
grep "${pkgver}_src.tar.gz" 'sha256sum.txt.asc' | tr -d '\r' | sha256sum -c -
msg2 'Checksums OK.'
cd "$srcdir/${pkgname}_${pkgver}-src"
## Get Python2 Version
_py2longver=$(pacman -Qi python2 | grep "Version" | sed 's/^Version\s*:\s//')
_py2ver=${_py2longver%.*}
PYTHON_VERSION=${_py2ver} ./autogen.sh
}
build() {
cd "$srcdir/${pkgname}_${pkgver}-src"
## Get Python2 Version
_py2longver=$(pacman -Qi python2 | grep "Version" | sed 's/^Version\s*:\s//')
_py2ver=${_py2longver%.*}
PYTHON_VERSION=${_py2ver} ./configure
## Build using current python2 version
PYTHON_VERSION=${_py2ver} make
}
package() {
install -Dm644 "$srcdir/${pkgname}_${pkgver}-src/dpkgfiles/armory.desktop" "$pkgdir/usr/share/applications/armory.desktop"
install -Dm644 "$srcdir/${pkgname}_${pkgver}-src/dpkgfiles/armoryoffline.desktop" "$pkgdir/usr/share/applications/armoryoffline.desktop"
install -Dm644 "$srcdir/${pkgname}_${pkgver}-src/dpkgfiles/armorytestnet.desktop" "$pkgdir/usr/share/applications/armorytestnet.desktop"
install -Dm644 "$srcdir/${pkgname}_${pkgver}-src/img/armory_icon_64x64.png" "$pkgdir/usr/share/armory/img/armory_icon_64x64.png"
install -Dm644 "$srcdir/${pkgname}_${pkgver}-src/img/armory_icon_green_64x64.png" "$pkgdir/usr/share/armory/img/armory_icon_green_64x64.png"
install -Dm 755 "$srcdir/run-armory.sh" "$pkgdir/usr/bin/armory"
mkdir -p "$pkgdir/opt"
cp -R "$srcdir/${pkgname}_${pkgver}-src/." "$pkgdir/opt/$pkgname/"
mkdir -p "$pkgdir/usr/local/bin"
ln -s "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/local/bin/$pkgname"
rm -rf "$pkgdir/opt/$pkgname/cppForSwig/"
rm -rf "$pkgdir/opt/$pkgname/.git/"
rm -rf "$pkgdir/opt/$pkgname/.gitignore"
}
|