Date: Saturday, September 3, 2022 @ 18:29:05 Author: ffy00 Revision: 1292668
archrelease: copy trunk to community-any Added: python-libusb1/repos/community-any/PKGBUILD (from rev 1292667, python-libusb1/trunk/PKGBUILD) Deleted: python-libusb1/repos/community-any/PKGBUILD ----------+ PKGBUILD | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-09-03 18:29:01 UTC (rev 1292667) +++ PKGBUILD 2022-09-03 18:29:05 UTC (rev 1292668) @@ -1,28 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> - -_pkgname=libusb1 -pkgname=python-$_pkgname -pkgver=2.0.1 -pkgrel=3 -pkgdesc='Python ctype-based wrapper around libusb1' -arch=('any') -url='https://github.com/vpelletier/python-libusb1' -license=('LGPL2.1') -depends=('python' 'libusb') -makedepends=('python-setuptools' 'python-wheel') -source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") -sha512sums=('4860fdb244c32249e6aba7e2b8642eec8eca9acfacaa284568821af3bf95d63411bf5da3615beff47761ca35fc387526b1a9074fe44805097e55787b6aa890e8') - -build() { - cd $pkgname-$pkgver - - python setup.py build -} - -package() { - cd $pkgname-$pkgver - - python setup.py install --root="$pkgdir" --optimize=1 --skip-build -} - -# vim:set ts=2 sw=2 et: Copied: python-libusb1/repos/community-any/PKGBUILD (from rev 1292667, python-libusb1/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-09-03 18:29:05 UTC (rev 1292668) @@ -0,0 +1,28 @@ +# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> + +_pkgname=libusb1 +pkgname=python-$_pkgname +pkgver=3.0.0 +pkgrel=1 +pkgdesc='Python ctype-based wrapper around libusb1' +arch=('any') +url='https://github.com/vpelletier/python-libusb1' +license=('LGPL2.1') +depends=('python' 'libusb') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha512sums=('7812dc4a22fc277f9791fb7050aa0a9c3953d1d3b386bb848380026a036a09bdff7745163eab07f5b70f919cb45ea4cd14f212f9e065dee670afee97a458de9d') + +build() { + cd $pkgname-$pkgver + + python -m build -nw +} + +package() { + cd $pkgname-$pkgver + + python -m installer -d "$pkgdir" dist/*.whl +} + +# vim:set ts=2 sw=2 et: