[arch-commits] Commit in python-btchip/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jul 8 08:57:44 UTC 2018


    Date: Sunday, July 8, 2018 @ 08:57:44
  Author: felixonmars
Revision: 354694

archrelease: copy trunk to community-staging-any

Added:
  python-btchip/repos/community-staging-any/
  python-btchip/repos/community-staging-any/PKGBUILD
    (from rev 354692, python-btchip/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: python-btchip/repos/community-staging-any/PKGBUILD (from rev 354692, python-btchip/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-08 08:57:44 UTC (rev 354694)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgbase=python-btchip
+pkgname=('python-btchip' "python2-btchip")
+pkgver=0.1.27
+pkgrel=2
+pkgdesc="Python library to communicate with BTChip dongle"
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+optdepends=('btchip-udev: access BTChip as non-root user')
+url="https://github.com/LedgerHQ/btchip-python"
+license=('Apache')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/LedgerHQ/btchip-python/archive/v$pkgver.tar.gz")
+sha256sums=('1114b90f0fd56138dd320b94083ad05c5032a01d6008344479268b8f8e4e9110')
+
+prepare() {
+  cp -r "btchip-python-$pkgver" "btchip-python2-$pkgver"
+}
+
+build() {
+  cd "btchip-python-$pkgver"
+  python setup.py build
+
+  cd "../btchip-python2-$pkgver"
+  python2 setup.py build
+}
+
+package_python-btchip() {
+  depends=('python-hidapi')
+
+  cd "btchip-python-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-btchip() {
+  depends=('python2-hidapi')
+
+  cd "btchip-python2-$pkgver"
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+



More information about the arch-commits mailing list