1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-click-default-group
6 pkgdesc="Extends click.Group to invoke a command without explicit subcommand name"
7 url="https://github.com/click-contrib/click-default-group"
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')
19 cd click-default-group-$pkgver
20 patch -Np1 -i ../$pkgname-click8.patch
24 cd click-default-group-$pkgver
29 cd click-default-group-$pkgver
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/