author | George Rawlinson
<grawlinson@archlinux.org> 2024-07-01 23:42:39 UTC |
committer | George Rawlinson
<grawlinson@archlinux.org> 2024-07-01 23:42:39 UTC |
parent | 58192b8ce43e5e754d1bae260adb3229993c93d3 |
.SRCINFO | +6 | -4 |
PKGBUILD | +12 | -14 |
diff --git a/.SRCINFO b/.SRCINFO index cee1892..6efdaea 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,19 +1,21 @@ pkgbase = python-platformdirs pkgdesc = A library to determine platform-specific system directories - pkgver = 4.2.0 - pkgrel = 3 + pkgver = 4.2.2 + pkgrel = 1 url = https://github.com/platformdirs/platformdirs arch = any license = MIT checkdepends = python-pytest checkdepends = python-pytest-mock checkdepends = python-appdirs + makedepends = git makedepends = python-build makedepends = python-installer makedepends = python-hatchling makedepends = python-hatch-vcs depends = python - source = platformdirs-4.2.0.tar.gz::https://github.com/platformdirs/platformdirs/archive/refs/tags/4.2.0.tar.gz - b2sums = efd79a88b7d1ea3c94be21ce01443d6429596c8e621e9589f6980877aef8d8e5c2e916b4421e9993df1f4d0184c136afcac96800af9f4283c8876d7c00a6e8d3 + source = python-platformdirs::git+https://github.com/platformdirs/platformdirs#tag=4.2.2 + sha512sums = 522b24897f31d43353429a101e29723b3ab22f0b7d801fc77ea125868cf1edfa695122350a432ce442c372361892a4f9d57dd6f31562fc14ebca30c4d4d03e4b + b2sums = 55a18ec0b5d679c3c7b6cdb2856048b9af051e8ac4a1d839806321dff165d09a1a610fa8d3e3bb152ae69f39e5a0480723c4eaf6f269056c1bd88ac198e0af94 pkgname = python-platformdirs diff --git a/PKGBUILD b/PKGBUILD index 18fe568..5c831a4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,14 +4,15 @@ pkgname=python-platformdirs _name="${pkgname#python-}" -pkgver=4.2.0 -pkgrel=3 +pkgver=4.2.2 +pkgrel=1 pkgdesc='A library to determine platform-specific system directories' arch=('any') url='https://github.com/platformdirs/platformdirs' license=('MIT') depends=('python') makedepends=( + 'git' 'python-build' 'python-installer' 'python-hatchling' @@ -22,30 +23,27 @@ checkdepends=( 'python-pytest-mock' 'python-appdirs' ) -source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz") -b2sums=('efd79a88b7d1ea3c94be21ce01443d6429596c8e621e9589f6980877aef8d8e5c2e916b4421e9993df1f4d0184c136afcac96800af9f4283c8876d7c00a6e8d3') +source=("$pkgname::git+$url#tag=$pkgver") +sha512sums=('522b24897f31d43353429a101e29723b3ab22f0b7d801fc77ea125868cf1edfa695122350a432ce442c372361892a4f9d57dd6f31562fc14ebca30c4d4d03e4b') +b2sums=('55a18ec0b5d679c3c7b6cdb2856048b9af051e8ac4a1d839806321dff165d09a1a610fa8d3e3bb152ae69f39e5a0480723c4eaf6f269056c1bd88ac198e0af94') build() { - cd "$_name-$pkgver" + cd "$pkgname" - SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build --wheel --no-isolation + python -m build --wheel --no-isolation } check() { - cd "$_name-$pkgver" + cd "$pkgname" PYTHONPATH="$(pwd)/src" pytest -v } package() { - cd "$_name-$pkgver" + cd "$pkgname" python -m installer --destdir="$pkgdir" dist/*.whl - # symlink license file - local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") - install -d "$pkgdir/usr/share/licenses/$pkgname" - ln -s "$site_packages/${_name}-$pkgver.dist-info/licenses/LICENSE" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE } -# vim:set ts=2 sw=2 et: