git » python-boolean.py.git » commit bb57498

Remove make dependency on git

author David Runge
2024-04-03 17:38:21 UTC
committer David Runge
2024-04-03 17:38:21 UTC
parent e61bf74a2fbe0b99634761e6e91adbc294d82f42

Remove make dependency on git

The build does not require git

Signed-off-by: David Runge <dvzrv@archlinux.org>

PKGBUILD +7 -13

diff --git a/PKGBUILD b/PKGBUILD
index baf35a8..dba5bb5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,6 +4,7 @@
 # SPDX-License-Identifier: CC0-1.0
 
 pkgname='python-boolean.py'
+_name="${pkgname#python-}"
 pkgver=4.0
 pkgrel=2
 pkgdesc='Implements boolean algebra in one module'
@@ -11,32 +12,25 @@ arch=('any')
 url='https://github.com/bastikr/boolean.py'
 license=('BSD-2-Clause')
 depends=('python')
-makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
 checkdepends=('python-pytest')
-_commit='93589c505c256eead9757402e908fcfdc1bb5ec5'
-source=("$pkgname::git+$url#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
-  cd "$pkgname"
-
-  git describe --tags | sed 's/^v//'
-}
+source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
+b2sums=('68e183c670684d2f92ad94f2b88616c932c2a85db40fa1a2552bc60c9bf03999bb456e0a91623afba2af4f2c89ef6cacf0c6f0267ac55aadcf02e67c8324c8f6')
 
 build() {
-  cd "$pkgname"
+  cd "$_name-$pkgver"
 
   python -m build --wheel --no-isolation
 }
 
 check() {
-  cd "$pkgname"
+  cd "$_name-$pkgver"
 
   pytest -vv
 }
 
 package() {
-  cd "$pkgname"
+  cd "$_name-$pkgver"
 
   python -m installer --destdir="$pkgdir" dist/*.whl