[arch-commits] Commit in python-pyusb/trunk (PKGBUILD)
NicoHood
nicohood at archlinux.org
Sun Oct 30 22:55:49 UTC 2016
Date: Sunday, October 30, 2016 @ 22:55:48
Author: nicohood
Revision: 194116
pkgrel: python-pyusb 1.0.0-4
Modified:
python-pyusb/trunk/PKGBUILD
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-30 22:50:55 UTC (rev 194115)
+++ PKGBUILD 2016-10-30 22:55:48 UTC (rev 194116)
@@ -0,0 +1,42 @@
+# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
+# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
+# Contributor: Martchus <martchus at gmx.net>
+# Contributor: Nuno Araujo <nuno.araujo at russo79.com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+# Contributor: Jason Giangrande <jgiangrande at clarku.edu>
+
+_pkgname=pyusb
+pkgbase=python-pyusb
+pkgname=('python-pyusb' 'python2-pyusb')
+pkgver=1.0.0
+pkgrel=4
+arch=('any')
+url="https://github.com/walac/${_pkgname}"
+license=('custom')
+makedepends=('python-distribute' 'python2-distribute')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/walac/${_pkgname}/archive/${pkgver}.tar.gz")
+sha512sums=('af5549750140d12229202e8c32f48d6f2bbcda632b43763f7cefc51f63c61d5d9c4bf816842019729c911aedca792269a2cacad08d668d7ec569038b9979e3de')
+
+prepare() {
+ # Create a copy for the python2 package
+ cp -r "${_pkgname}-${pkgver}" "python2-${_pkgname}-${pkgver}"
+}
+
+package_python-pyusb() {
+ pkgdesc="USB access on python3"
+ depends=('python' 'libusb')
+
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pyusb() {
+ pkgdesc="USB access on python2"
+ depends=('python2' 'libusb')
+ replaces=('python2-pyusb-beta')
+
+ cd "${srcdir}/python2-${_pkgname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list