Date: Monday, March 30, 2015 @ 17:02:58 Author: tredaelli Revision: 130300
upgpkg: python2-btchip 0.1.14-2 Remove pyusb dependency (not needed on Linux) Added: python2-btchip/trunk/remove-pyusb-dependency.patch Modified: python2-btchip/trunk/PKGBUILD -------------------------------+ PKGBUILD | 15 ++++++++++++--- remove-pyusb-dependency.patch | 22 ++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-03-30 14:08:10 UTC (rev 130299) +++ PKGBUILD 2015-03-30 15:02:58 UTC (rev 130300) @@ -4,7 +4,7 @@ pkgname=python2-btchip pkgver=0.1.14 -pkgrel=1 +pkgrel=2 pkgdesc="Python library to communicate with BTChip dongle" arch=('any') depends=('python2-hidapi') @@ -11,9 +11,18 @@ makedepends=('python2-setuptools') url="https://github.com/LedgerHQ/btchip-python" license=('Apache') -source=(https://github.com/LedgerHQ/btchip-python/archive/v$pkgver.tar.gz) -sha256sums=('6adfa69f18bc3ecff07a877dd46eff62dc747bd8cac491d882ba1bcb16bd16d5') +source=($pkgname-$pkgver.tar.gz::https://github.com/LedgerHQ/btchip-python/archive/v$pkgver.tar.gz + remove-pyusb-dependency.patch) +sha256sums=('6adfa69f18bc3ecff07a877dd46eff62dc747bd8cac491d882ba1bcb16bd16d5' + '36dd49db4931e5ef6010e5673d4aaa3adb671ca955db97787cd0ae5726538141') +prepare() { + cd btchip-python-$pkgver + + # Disable useless (on linux) pyusb dependency + patch -uNp1 -i ../remove-pyusb-dependency.patch +} + build() { cd btchip-python-$pkgver Added: remove-pyusb-dependency.patch =================================================================== --- remove-pyusb-dependency.patch (rev 0) +++ remove-pyusb-dependency.patch 2015-03-30 15:02:58 UTC (rev 130300) @@ -0,0 +1,22 @@ +From 7d6bc6105ed2f405fbb683a5d6ceafc55e92e3c0 Mon Sep 17 00:00:00 2001 +From: drizzt <timothy.redae...@gmail.com> +Date: Wed, 18 Mar 2015 16:01:27 +0100 +Subject: [PATCH] Don't include usb.core in btchipPersoWizard.py + +It's useless and it enforce pyusb to be a mandatory depends, but on not-Windows it's not needed. +--- + btchip/btchipPersoWizard.py | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/btchip/btchipPersoWizard.py b/btchip/btchipPersoWizard.py +index 3220227..486e6d9 100644 +--- a/btchip/btchipPersoWizard.py ++++ b/btchip/btchipPersoWizard.py +@@ -28,7 +28,6 @@ + except: + MNEMONIC = False + +-from usb.core import USBError + from btchipComm import getDongle, DongleWait + from btchip import btchip + from btchipUtils import compress_public_key,format_transaction, get_regular_input_script