[arch-commits] Commit in python2-hidapi/repos (2 files)

Timothy Redaelli tredaelli at archlinux.org
Tue Mar 17 14:11:07 UTC 2015


    Date: Tuesday, March 17, 2015 @ 15:11:07
  Author: tredaelli
Revision: 129420

archrelease: copy trunk to community-x86_64

Added:
  python2-hidapi/repos/community-x86_64/
  python2-hidapi/repos/community-x86_64/PKGBUILD
    (from rev 129419, python2-hidapi/trunk/PKGBUILD)

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

Copied: python2-hidapi/repos/community-x86_64/PKGBUILD (from rev 129419, python2-hidapi/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-03-17 14:11:07 UTC (rev 129420)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgname=python2-hidapi
+pkgver=0.7.99.5
+_pkgver=${pkgver%.*}-${pkgver##*.}
+pkgrel=1
+pkgdesc="A Cython interface to the hidapi from signal11/hidapi"
+arch=('i686' 'x86_64')
+depends=('libusb' 'python2')
+makedepends=('cython2' 'python2-setuptools')
+url="https://github.com/trezor/cython-hidapi"
+license=('custom')
+source=(https://pypi.python.org/packages/source/h/${pkgname#python2-}/${pkgname#python2-}-$_pkgver.tar.gz)
+sha256sums=('9316c34c25a441e0c3f478a5a09a9e360e03d5bf5cf34e7f425419d3d3b6c8ac')
+
+build() {
+  cd "${pkgname#python2-}-$_pkgver"
+
+  python2 setup.py build
+}
+
+package() {
+  cd "${pkgname#python2-}-$_pkgver"
+
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
+  echo "You are free to use cython-hidapi code for any purpose." > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list