git » python-jaraco.context.git » commit 5158028

upgpkg: 4.2.0-2

author Felix Yan
2023-01-31 19:44:49 UTC
committer Felix Yan
2023-01-31 19:44:49 UTC
parent 24042a91932eb4dd7bc76330f45268f4989ebbc8

upgpkg: 4.2.0-2

PKGBUILD +8 -10

diff --git a/PKGBUILD b/PKGBUILD
index 3741ade..34b0b39 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,32 +2,30 @@
 
 pkgname=python-jaraco.context
 pkgver=4.2.0
-pkgrel=1
+_commit=5bf0042ef434aa8924a771a405ae29e4c0110c1e
+pkgrel=2
 pkgdesc="Context managers by jaraco"
 url="https://github.com/jaraco/jaraco.context"
 license=('MIT')
 arch=('any')
 depends=('python')
-makedepends=('python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel')
+makedepends=('git' 'python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel')
 checkdepends=('python-pytest')
-source=("https://github.com/jaraco/jaraco.context/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('3e4dcff86c02e4a297c3e26180c07a5c58375713f878c490f5908ef373f1126ea353ca3009befee0233269570f260476182833310f8437f37d58a58be1aaf480')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+source=("git+https://github.com/jaraco/jaraco.context.git#commit=$_commit")
+sha512sums=('SKIP')
 
 build() {
-  cd jaraco.context-$pkgver
+  cd jaraco.context
   python -m build -wn
 }
 
 check() {
-  cd jaraco.context-$pkgver
+  cd jaraco.context
   python -m pytest
 }
 
 package() {
-  cd jaraco.context-$pkgver
+  cd jaraco.context
   python -m installer -d "$pkgdir" dist/*.whl
-
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }