diff options
author | Felix Yan | 2023-08-29 10:43:00 +0300 |
---|---|---|
committer | Felix Yan | 2023-08-29 10:43:00 +0300 |
commit | f42dd255c01a92de39f1cd8472156743f6279728 (patch) | |
tree | 051e9d1c5d0b2e5f8f4a45f0a55d303e401c6553 | |
parent | dd6f5b46de43eb564f4b414212bf428cea0ba453 (diff) | |
download | aur-f42dd255c01a92de39f1cd8472156743f6279728.tar.gz |
upgpkg: 1.2.4-1
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 7 insertions, 15 deletions
@@ -1,28 +1,21 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgname=python-click-default-group -pkgver=1.2.2 -pkgrel=7 +pkgver=1.2.4 +pkgrel=1 pkgdesc="Extends click.Group to invoke a command without explicit subcommand name" url="https://github.com/click-contrib/click-default-group" license=('BSD') arch=('any') depends=('python-click') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-flit-core') checkdepends=('python-pytest') -source=("$pkgname-$pkgver.tar.gz::https://github.com/click-contrib/click-default-group/archive/v$pkgver.tar.gz" - "$pkgname-click8.patch::https://github.com/click-contrib/click-default-group/pull/18.patch") -sha512sums=('6f296d154813e0c3dbf8e435c4c1b4394f51a000320c5585aeb78b81f30fe15bd27a8aad0fdbb71fccb88dc3083682519f1dd06572c8d5c35639fb9c3acf73fa' - '515b12c0ebb09d097fbe16934d37dcd66b8f192f32dd32e92a642a093028c060b0d478632e65cb62c7bcd7cb784564d11f3ca3b151b15fa980ec76bfe730cabe') - -prepare() { - cd click-default-group-$pkgver - patch -Np1 -i ../$pkgname-click8.patch -} +source=("https://github.com/click-contrib/click-default-group/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('0239e703421e693399e8e54e4a6bdc4a74e6f16307f008ee742788ce3e8040f633de2b1bf12997a5c448b70cb55f77ccd4f42c5b4abe3b6a05df18908daf61da') build() { cd click-default-group-$pkgver - python setup.py build + python -m build -nw } check() { @@ -32,7 +25,6 @@ check() { package() { cd click-default-group-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - + python -m installer -d "$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ } |