upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-click-default-group / repos / community-any / PKGBUILD
blob712ca680717f10a3ceb9bf1c12c7486095458288
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-click-default-group
4 pkgver=1.2.2
5 pkgrel=7
6 pkgdesc="Extends click.Group to invoke a command without explicit subcommand name"
7 url="https://github.com/click-contrib/click-default-group"
8 license=('BSD')
9 arch=('any')
10 depends=('python-click')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/click-contrib/click-default-group/archive/v$pkgver.tar.gz"
14         "$pkgname-click8.patch::https://github.com/click-contrib/click-default-group/pull/18.patch")
15 sha512sums=('6f296d154813e0c3dbf8e435c4c1b4394f51a000320c5585aeb78b81f30fe15bd27a8aad0fdbb71fccb88dc3083682519f1dd06572c8d5c35639fb9c3acf73fa'
16             '515b12c0ebb09d097fbe16934d37dcd66b8f192f32dd32e92a642a093028c060b0d478632e65cb62c7bcd7cb784564d11f3ca3b151b15fa980ec76bfe730cabe')
18 prepare() {
19   cd click-default-group-$pkgver
20   patch -Np1 -i ../$pkgname-click8.patch
23 build() {
24   cd click-default-group-$pkgver
25   python setup.py build
28 check() {
29   cd click-default-group-$pkgver
30   python -m pytest
33 package() {
34   cd click-default-group-$pkgver
35   python setup.py install --root="$pkgdir" --optimize=1
37   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/