Date: Tuesday, January 31, 2023 @ 20:30:08
  Author: felixonmars
Revision: 1391552

upgpkg: python-tqdm 4.64.1-2

Modified:
  python-tqdm/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++----------------------
 1 file changed, 11 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:26:19 UTC (rev 1391551)
+++ PKGBUILD    2023-01-31 20:30:08 UTC (rev 1391552)
@@ -1,9 +1,9 @@
 # Maintainer: Felix Yan <[email protected]>
 
-_pkgname=tqdm
-pkgname=python-$_pkgname
+pkgname=python-tqdm
 pkgver=4.64.1
-pkgrel=1
+_commit=6791e8c5b3d6c30bdd2060c346996bfb5a6f10d1
+pkgrel=2
 pkgdesc='Fast, Extensible Progress Meter'
 arch=('any')
 license=('MIT' 'MPL')
@@ -10,39 +10,28 @@
 url='https://github.com/tqdm/tqdm'
 depends=('python')
 optdepends=('python-requests: telegram')
-makedepends=('python-setuptools-scm' 'python-toml')
+makedepends=('git' 'python-setuptools-scm' 'python-toml')
 checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-timeout' 
'python-numpy'
-              'python-pandas' 'python-tensorflow' 'python-rich' 'python-dask' 
'tk')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/tqdm/tqdm/archive/v$pkgver.tar.gz";)
-sha512sums=('87cb0c0daebb66ccdbf6f55207459795fcaa93d9bfacb767008ca9e536c0e2738c3639162d02fd0b9d91b18a75b411d5a0d53feb7d6c4786be31640c35a8d9b5')
+              'python-pandas' 'python-rich' 'python-dask' 'tk')
+source=("git+https://github.com/tqdm/tqdm.git#commit=$_commit";)
+sha512sums=('SKIP')
 
 build() {
-  cd $_pkgname-$pkgver
-
-  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
+  cd tqdm
   python setup.py build
 }
 
 check() {
-  cd $_pkgname-$pkgver
-
-  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
+  cd tqdm
   python -m venv --system-site-packages test-env
-
   test-env/bin/python setup.py install
   test-env/bin/python -m pytest -k 'not test_dask'
 }
 
 package() {
-  cd $_pkgname-$pkgver
-
-  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
+  cd tqdm
   python setup.py install --root="$pkgdir" --optimize=1
-
-  install -D -m644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
+  install -Dm644 LICENCE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }
 
 # vim:set ts=2 sw=2 et:

Reply via email to