1 # Maintainer: Justin Gottula <justin@jgottula.com>
5 pkgdesc="Python-Based Bitcoin Software"
7 url="https://github.com/etotheipi/BitcoinArmory"
10 depends=('crypto++' 'swig' 'python2' 'twisted' 'qt' 'python2-pyqt')
11 makedepends=('git' 'gcc' 'make')
18 source=('run-armory.sh')
20 sha256sums=('baa1d335273af1f1f4d12dd68f066035e5b4485b215172690c307877ac62168c')
22 _gitroot='git://github.com/etotheipi/BitcoinArmory.git'
23 _gitname='BitcoinArmory'
28 msg "Connecting to GIT server...."
30 if [[ -d "$_gitname" ]]; then
31 cd "$_gitname" && git pull origin $_gitbranch
32 msg "The local files are updated."
34 git clone -b $_gitbranch "$_gitroot" "$_gitname"
37 msg "GIT checkout done or server timeout"
38 msg "Starting build..."
40 rm -rf "$srcdir/$_gitname-build"
41 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
49 install -Dm 755 "$srcdir/run-armory.sh" "$pkgdir/usr/bin/armory"
51 mkdir -p "$pkgdir/opt"
52 cp -R "$srcdir/$_gitname-build/" "$pkgdir/opt/"
53 mv "$pkgdir/opt/$_gitname-build" "$pkgdir/opt/$_gitname"
55 rm -rf "$pkgdir/opt/$_gitname/cppForSwig/"
56 rm -rf "$pkgdir/opt/$_gitname/.git/"
57 rm -rf "$pkgdir/opt/$_gitname/.gitignore"