[arch-commits] Commit in python-pyusb/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Wed Feb 17 22:03:20 UTC 2021
Date: Wednesday, February 17, 2021 @ 22:03:20
Author: ffy00
Revision: 862856
upgpkg: python-pyusb 1.1.1-1
Modified:
python-pyusb/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++++++++++++++++++-------------
1 file changed, 22 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-17 22:02:59 UTC (rev 862855)
+++ PKGBUILD 2021-02-17 22:03:20 UTC (rev 862856)
@@ -6,25 +6,34 @@
# Contributor: Jason Giangrande <jgiangrande at clarku.edu>
_pkgname=pyusb
-pkgname=python-pyusb
-pkgdesc="USB access on Python"
-pkgver=1.1.0
-pkgrel=3
+pkgname=python-$_pkgname
+pkgdesc='USB access on Python'
+pkgver=1.1.1
+pkgrel=1
arch=('any')
-url="https://github.com/pyusb/pyusb"
+url='https://github.com/pyusb/pyusb'
license=('custom')
depends=('python' 'libusb')
-makedepends=('python-distribute')
-#source=("${pkgname}-${pkgver}.tar.gz::https://github.com/walac/${_pkgname}/archive/${pkgver}.tar.gz")
-source=("${_pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
- "${_pkgname}-${pkgver}.tar.gz.asc::https://pypi.org/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz.asc")
-sha512sums=('0769670e6ebd8b31f2494258eca5d6e470ad3cb17663cc14b8b3a8136ea24caa23f86d81c60c501b88a9bc94b0de6a45aac43c6c5f140e65fd03a589b4d18179'
- 'SKIP')
+makedepends=('git' 'python-setuptools-scm')
+source=("git+$url.git?signed#tag=v$pkgver")
+sha512sums=('SKIP')
validpgpkeys=('B04841AE800C1BF01FE1BC3D084C5584542E1574' # Wander Lairson Costa <wcosta at mozilla.com>
'23F335ED4E829797734B22F65841AF7406AF7AD0') # Jonas Tadeu Silva Malaco Filho <jonas at jonasmalaco.com>
+build() {
+ cd $_pkgname
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+ python setup.py build
+}
+
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd $_pkgname
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
python setup.py install --root="${pkgdir}" --optimize=1
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list