summaryrefslogtreecommitdiff
path: root/pcr/armory
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/armory')
-rw-r--r--pcr/armory/PKGBUILD45
-rw-r--r--pcr/armory/build_detect_platform-01.patch13
-rw-r--r--pcr/armory/run-armory.sh3
3 files changed, 61 insertions, 0 deletions
diff --git a/pcr/armory/PKGBUILD b/pcr/armory/PKGBUILD
new file mode 100644
index 000000000..adb60a766
--- /dev/null
+++ b/pcr/armory/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer : Aurelien Desbrieres <aurelien@hackers.camp>
+# Contributor: portals <portals at riseup.net>
+#Base on work of: 2bluesc <2bluesc at gmail.com> and mazzolino <maze+aur at strahlungsfrei.de>
+# Contributor: Pieter Kokx <pieter@kokx.nl>
+
+pkgname=armory
+_pkgname=BitcoinArmory
+pkgver=0.92.3
+_pkgver=0.92.3
+pkgrel=2
+pkgdesc="Python-Based Bitcoin Software"
+arch=('i686' 'x86_64')
+url="https://github.com/etotheipi/BitcoinArmory"
+license=('AGPL3')
+groups=()
+depends=('crypto++' 'swig' 'python2' 'twisted' 'qt4' 'python2-pyqt4' 'python2-bsddb' 'python2-psutil')
+makedepends=('git' 'gcc' 'make')
+provides=('armory')
+conflicts=('armory')
+replaces=()
+backup=()
+options=()
+install=
+source=("run-armory.sh" "build_detect_platform-01.patch" "http://github.com/etotheipi/BitcoinArmory/archive/v$_pkgver.tar.gz")
+noextract=()
+
+build() {
+ cd $srcdir/BitcoinArmory-$_pkgver/
+
+ patch -p0 -i $srcdir//build_detect_platform-01.patch
+
+ make PYVER=python2.7
+}
+
+package() {
+ install -Dm 755 "$srcdir/run-armory.sh" "$pkgdir/usr/bin/armory"
+
+ mkdir -p "$pkgdir/opt"
+ cp -R "$srcdir/$_pkgname-$_pkgver/" "$pkgdir/opt/"
+ mv "$pkgdir/opt/$_pkgname-$_pkgver" "$pkgdir/opt/$_pkgname"
+
+ rm -rf "$pkgdir/opt/$_pkgname/cppForSwig/"
+ rm -rf "$pkgdir/opt/$_pkgname/.git/"
+ rm -rf "$pkgdir/opt/$_pkgname/.gitignore"
+}
diff --git a/pcr/armory/build_detect_platform-01.patch b/pcr/armory/build_detect_platform-01.patch
new file mode 100644
index 000000000..ca3a5cc8d
--- /dev/null
+++ b/pcr/armory/build_detect_platform-01.patch
@@ -0,0 +1,13 @@
+--- cppForSwig/leveldb/build_detect_platform 2014-04-21 15:57:03.485118965 +0200
++++ cppForSwig/leveldb/build_detect_platform_fix 2014-04-21 15:59:19.714407671 +0200
+@@ -185,9 +185,7 @@
+
+ # Test whether Snappy library is installed
+ # http://code.google.com/p/snappy/
+- $CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT 2>/dev/null <<EOF
+- #include <snappy.h>
+- int main() {}
++
+ EOF
+ if [ "$?" = 0 ]; then
+ COMMON_FLAGS="$COMMON_FLAGS -DSNAPPY"
diff --git a/pcr/armory/run-armory.sh b/pcr/armory/run-armory.sh
new file mode 100644
index 000000000..fe3368474
--- /dev/null
+++ b/pcr/armory/run-armory.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+python2 /opt/BitcoinArmory/ArmoryQt.py $@