author | Filipe Laíns
<lains@archlinux.org> 2022-09-03 18:29:01 UTC |
committer | Filipe Laíns
<lains@archlinux.org> 2022-09-03 18:29:01 UTC |
parent | 39fc6c9bdf447b2535f3e58f154464228e1eb553 |
PKGBUILD | +6 | -6 |
diff --git a/PKGBUILD b/PKGBUILD index 00af686..af2d13b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,27 +2,27 @@ _pkgname=libusb1 pkgname=python-$_pkgname -pkgver=2.0.1 -pkgrel=3 +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-setuptools' 'python-wheel') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") -sha512sums=('4860fdb244c32249e6aba7e2b8642eec8eca9acfacaa284568821af3bf95d63411bf5da3615beff47761ca35fc387526b1a9074fe44805097e55787b6aa890e8') +sha512sums=('7812dc4a22fc277f9791fb7050aa0a9c3953d1d3b386bb848380026a036a09bdff7745163eab07f5b70f919cb45ea4cd14f212f9e065dee670afee97a458de9d') build() { cd $pkgname-$pkgver - python setup.py build + python -m build -nw } package() { cd $pkgname-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl } # vim:set ts=2 sw=2 et: