diff options
author | Jonathan la Cour | 2015-06-08 08:18:43 -0600 |
---|---|---|
committer | Jonathan la Cour | 2015-06-08 08:18:43 -0600 |
commit | f24f0c31f50b6ca474adad181374acb48b5e3222 (patch) | |
tree | c90030bf652efcb9522c24f18e96ac4f87191763 | |
download | aur-f24f0c31f50b6ca474adad181374acb48b5e3222.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | PKGBUILD | 50 | ||||
-rw-r--r-- | armory-git.install | 13 | ||||
-rw-r--r-- | makefile-01.patch | 16 | ||||
-rw-r--r-- | run-armory.sh | 3 |
5 files changed, 114 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0fdf6f2d6347 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = armory-git + pkgdesc = Full-featured Bitcoin wallet management application + pkgver = v0.93.1.r2.g35320e7 + pkgrel = 1 + url = https://github.com/etotheipi/BitcoinArmory + install = armory-git.install + arch = i686 + arch = x86_64 + license = AGPL3 + makedepends = git + makedepends = gcc + makedepends = make + depends = crypto++ + depends = swig + depends = python2 + depends = twisted + depends = qt4 + depends = python2-pyqt4 + depends = python2-bsddb + depends = python2-psutil + optdepends = bitcoin-daemon: Communicate with the Bitcoin network + provides = armory + conflicts = armory + source = armory-git::git+https://github.com/etotheipi/BitcoinArmory.git + source = run-armory.sh + source = makefile-01.patch + sha256sums = SKIP + sha256sums = 4b8ab285588ec07601fb4d9580b84e11a513635a102d92ee7c283261d0b6c0dc + sha256sums = 5091c0e66bba8bb2daff320224dc3643279d2d5e014ac52a880b7e20ee67dd91 + +pkgname = armory-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a060cddfbb18 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Jonathan la Cour <jon@lacour.me> +# Contributor: Pieter Kokx <pieter@kokx.nl> +pkgname=armory-git +pkgver=v0.93.1.r2.g35320e7 +pkgrel=1 +pkgdesc="Full-featured Bitcoin wallet management application" +arch=('i686' 'x86_64') +url="https://github.com/etotheipi/BitcoinArmory" +license=('AGPL3') +depends=('crypto++' 'swig' 'python2' 'twisted' 'qt4' 'python2-pyqt4' 'python2-bsddb' 'python2-psutil') +makedepends=('git' 'gcc' 'make') +optdepends=('bitcoin-daemon: Communicate with the Bitcoin network') +install="${pkgname}.install" +provides=('armory') +conflicts=('armory') +source=("$pkgname"::'git+https://github.com/etotheipi/BitcoinArmory.git' + 'run-armory.sh' + 'makefile-01.patch') +noextract=() +sha256sums=('SKIP' + '4b8ab285588ec07601fb4d9580b84e11a513635a102d92ee7c283261d0b6c0dc' + '5091c0e66bba8bb2daff320224dc3643279d2d5e014ac52a880b7e20ee67dd91') + +pkgver() { + cd "$srcdir/$pkgname" + git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/$pkgname" + patch -p0 -i $srcdir/makefile-01.patch + make +} + +package() { + install -Dm644 "$srcdir/$pkgname/dpkgfiles/armory.desktop" "$pkgdir/usr/share/applications/armory.desktop" + install -Dm644 "$srcdir/$pkgname/dpkgfiles/armoryoffline.desktop" "$pkgdir/usr/share/applications/armoryoffline.desktop" + install -Dm644 "$srcdir/$pkgname/dpkgfiles/armorytestnet.desktop" "$pkgdir/usr/share/applications/armorytestnet.desktop" + install -Dm644 "$srcdir/$pkgname/img/armory_icon_64x64.png" "$pkgdir/usr/share/armory/img/armory_icon_64x64.png" + install -Dm644 "$srcdir/$pkgname/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/" "$pkgdir/opt/" + + rm -rf "$pkgdir/opt/$pkgname/cppForSwig/" + rm -rf "$pkgdir/opt/$pkgname/.git/" + rm -rf "$pkgdir/opt/$pkgname/.gitignore" +} diff --git a/armory-git.install b/armory-git.install new file mode 100644 index 000000000000..9ea5ffc1abf7 --- /dev/null +++ b/armory-git.install @@ -0,0 +1,13 @@ +ARMORY_IMG_DIR="/usr/share/armory/img" + + post_install() { + xdg-icon-resource install --novendor --context apps --size 64 "${ARMORY_IMG_DIR}/armory_icon_64x64.png" armoryicon + xdg-icon-resource install --novendor --context apps --size 64 "${ARMORY_IMG_DIR}/armory_icon_64x64.png" armoryofflineicon + xdg-icon-resource install --novendor --context apps --size 64 "${ARMORY_IMG_DIR}/armory_icon_green_64x64.png" armorytestneticon + } + +pre_remove() { + xdg-icon-resource uninstall --size 64 armoryicon + xdg-icon-resource uninstall --size 64 armorytestneticon + xdg-icon-resource uninstall --size 64 armoryofflineicon +}
\ No newline at end of file diff --git a/makefile-01.patch b/makefile-01.patch new file mode 100644 index 000000000000..8c1e24070102 --- /dev/null +++ b/makefile-01.patch @@ -0,0 +1,16 @@ +--- cppForSwig/Makefile 2015-02-21 17:03:39.480800425 -0700 ++++ cppForSwig/Makefilex 2015-02-21 17:04:25.097329717 -0700 +@@ -33,12 +33,7 @@ + libcryptopp.a mdb.o midl.o txio.o + + #if python is specified, use it +-ifndef PYVER +-PYVER=python +-PYTHON_INCLUDES=$(shell python-config --includes ) +-else +-PYTHON_INCLUDES=$(shell $(PYVER)-config --includes ) +-endif ++PYTHON_INCLUDES=$(shell python2.7-config --includes ) + + CPPFLAGS += $(ARMORY_CPPFLAGS) -Icryptopp -Imdb -DUSE_CRYPTOPP -D__STDC_LIMIT_MACROS + LDLIBS += -lpthread -Lmdb
\ No newline at end of file diff --git a/run-armory.sh b/run-armory.sh new file mode 100644 index 000000000000..a0f84880d67b --- /dev/null +++ b/run-armory.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +python2 /opt/armory-git/ArmoryQt.py $@ |