# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'github-cli'
setvar pkgver = '1.0.0'
setvar pkgrel = '3'
setvar pkgdesc = ""GitHub issue tracker client""
setvar url = ""http://packages.python.org/github-cli/""
setvar arch = ""noarch""
setvar license = ""BSD""
setvar depends = ""python2 py-simplejson py-setuptools""
setvar makedepends = ""py-distutils-extra""
setvar subpackages = ""$pkgname-doc""
setvar source = ""$pkgname-$pkgver.zip::https://github.com/jsmits/$pkgname/archive/$pkgver.zip""
setvar builddir = ""$srcdir"/$pkgname-$pkgver"

proc check {
	cd $builddir
	python2 setup.py check
}

proc build {
	cd $builddir
	python2 setup.py build
}

proc package {
	cd $builddir
	python2 setup.py install --root="$pkgdir" -O1
	install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
	install -Dm644 README.rst "$pkgdir/usr/share/doc/$pkgname/README.rst"
}

setvar sha512sums = ""ba57bb1a6842da951da2c807e49f0b1f18c36e754dad567cc912dff6e979cd6aefd6063f10bd99d32542f73d8001a5bfcebd54471f445259dc218386e00fe61d  github-cli-1.0.0.zip""