Import changes (python-pyusb) from NicoHood
This commit is contained in:
parent
baaf58ec91
commit
73143dfb52
|
@ -1,29 +1,45 @@
|
||||||
# Maintainer: Martchus <martchus@gmx.net>
|
# Maintainer: Martchus <martchus@gmx.net>
|
||||||
|
# Co-Maintainer: NicoHood <aur {at} nicohood {dot} de>
|
||||||
|
# Contributor: Nuno Araujo <nuno.araujo@russo79.com>
|
||||||
|
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
|
||||||
|
# Contributor: Jason Giangrande <jgiangrande@clarku.edu>
|
||||||
|
|
||||||
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
||||||
# you also find the URL of a binary repository.
|
# you also find the URL of a binary repository.
|
||||||
|
|
||||||
pkgname=python-pyusb
|
_pkgname=pyusb
|
||||||
|
pkgbase=python-pyusb
|
||||||
|
pkgname=('python-pyusb' 'python2-pyusb')
|
||||||
pkgver=1.0.0
|
pkgver=1.0.0
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc='A pure Python module which provides USB access'
|
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/walac/pyusb"
|
url="https://github.com/walac/${_pkgname}"
|
||||||
license=('custom')
|
license=('custom')
|
||||||
depends=('python' 'libusb')
|
makedepends=('python-distribute' 'python2-distribute')
|
||||||
makedepends=('python-distribute')
|
conflicts=($_pkgname=$pkgver)
|
||||||
provides=($pkgname)
|
source=("https://github.com/walac/${_pkgname}/archive/${pkgver}.tar.gz")
|
||||||
conflicts=($pkgname-git)
|
sha512sums=('af5549750140d12229202e8c32f48d6f2bbcda632b43763f7cefc51f63c61d5d9c4bf816842019729c911aedca792269a2cacad08d668d7ec569038b9979e3de')
|
||||||
source=("https://github.com/walac/pyusb/archive/${pkgver}.tar.gz")
|
|
||||||
sha256sums=('52106ce23ccc3b804335952aa48f7d5ce94f7ec27b44bb2d523eac92b97ace63')
|
|
||||||
|
|
||||||
build() {
|
prepare() {
|
||||||
cd $srcdir/pyusb-$pkgver
|
# Create a copy for the python2 package
|
||||||
python setup.py build
|
cp -r "${_pkgname}-${pkgver}" "python2-${_pkgname}-${pkgver}"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package_python-pyusb() {
|
||||||
cd $srcdir/pyusb-$pkgver
|
pkgdesc="USB access on python3"
|
||||||
python setup.py install -f --root="$pkgdir"
|
depends=('python' 'libusb')
|
||||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
||||||
|
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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue