aboutsummaryrefslogtreecommitdiffstats
path: root/community/github-cli/APKBUILD
blob: 6d13c94aecc01a5e05f8703012c1d0ac0668562f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=github-cli
pkgver=1.0.0
pkgrel=3
pkgdesc="GitHub issue tracker client"
url="http://packages.python.org/github-cli/"
arch="noarch"
license="BSD"
depends="python2 py-simplejson py-setuptools"
makedepends="py-distutils-extra"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.zip::https://github.com/jsmits/$pkgname/archive/$pkgver.zip"
builddir="$srcdir"/$pkgname-$pkgver

check() {
	cd "$builddir"
	python2 setup.py check
}

build() {
	cd "$builddir"
	python2 setup.py build
}

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"
}

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