# Maintainer: Aurélien Desbrières # Maintainer (Arch): Jonathan la Cour # Contributor (Arch): Patrick Glandien # Contributor (Arch): William Grieshaber # Contributor (Arch): portals Base on work of: 2bluesc <2bluesc at gmail.com> and mazzolino # Contributor (Arch): Pieter Kokx 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" }