archrelease: copy trunk to community-any
[ArchLinux/community.git] / copr-cli / repos / community-any / PKGBUILD
blob74b2cd315d94c680504e5e347d4835ce7aeb9bb6
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=copr-cli
4 pkgver=1.103
5 pkgrel=3
6 pkgdesc="CLI tool to run copr"
7 url="https://pagure.io/copr/copr"
8 license=('GPL')
9 arch=('any')
10 depends=('python-copr' 'python-humanize' 'python-jinja' 'python-setuptools' 'python-simplejson')
11 checkdepends=('python-pytest' 'python-responses')
12 source=("https://pagure.io/copr/copr/archive/copr-cli-$pkgver-1/copr-copr-cli-$pkgver-1.tar.gz")
13 sha512sums=('8ef4d95c9eb86d8c3521a01919485d52b776a38d09f33bc03035d7fb7c481fecd042bbef8af463dd2e17d54810032efe6934fedd864dd25568fb712e9aaf394d')
15 build() {
16   cd copr-copr-cli-$pkgver-1/cli
17   python setup.py build
20 check() {
21   cd copr-copr-cli-$pkgver-1/cli
22   python -m pytest
25 package() {
26   cd copr-copr-cli-$pkgver-1/cli
27   python setup.py install --root="$pkgdir" --optimize=1
28   install -Dm644 man/*.1 -t "$pkgdir"/usr/share/man/man1/