author | Filipe Laíns
<lains@archlinux.org> 2022-09-03 19:41:32 UTC |
committer | Filipe Laíns
<lains@archlinux.org> 2022-09-03 19:41:32 UTC |
parent | 130aa2f067fe784ddd4a2b91f8e6ecfc30ab92ec |
PKGBUILD | +11 | -12 |
diff --git a/PKGBUILD b/PKGBUILD index 1c22e8e..f60f6ad 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,37 +2,36 @@ _pkgname=userpath pkgname=python-$_pkgname -pkgver=1.7.0 -pkgrel=3 +pkgver=1.8.0 +pkgrel=1 pkgdesc='Cross-platform tool for adding locations to the user PATH, no elevated privileges required!' arch=('any') url='https://github.com/ofek/userpath' -license=('MIT' 'Apache') +license=('MIT') depends=('python' 'python-click' 'python-distro') -makedepends=('python-setuptools') -checkdepends=('python-pytest-runner') -source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") -sha512sums=('faabda97ae4be23350ecf9e3be9b21b3b66b6873f31e094f5bd839b5ddd28d0968799217678b91fdf80a3b829aa1f7f6b451c55b0fc94f770e62f17dd6192b5e') +makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-wheel') +checkdepends=('python-pytest') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha512sums=('d2f082909fad22cf5b33f175afdeebe14a44ebd245c84506395f01a288eccf9c376ac28dcc4b618cc2464e1a23e740b41f4f4ad0e780a42e1185c5283ccc7330') build() { cd $_pkgname-$pkgver - python setup.py build + python -m build -nw } check() { cd $_pkgname-$pkgver - python setup.py pytest + python -m pytest } package() { cd $_pkgname-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl - install -Dm 644 LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT - install -Dm 644 LICENSE-APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-APACHE + install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT } # vim:set ts=2 sw=2 et: