aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-prettytable/APKBUILD
blob: a176e285ea52d5d944668a521436f5ad12bc5d85 (plain)
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
# Contributor: Matt Dainty <matt+alpine@bodgit-n-scarper.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=py3-prettytable
_pkgname=prettytable
pkgver=0.7.2
pkgrel=5
pkgdesc="Python library for easily displaying tabular data"
url="https://code.google.com/p/prettytable"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/P/PrettyTable/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-prettytable # Backwards compatibility
provides=py-prettytable=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	chmod a+rX "$pkgdir"/usr/lib/python3*/site-packages/*.egg-info/*
}

sha512sums="84611b9ad11bd428cdb00795e0a9baff44d027331b73ed1742596acda8acc8aca3df4276fa2f2ca2289f10b2989b3c86556de70bca6a9773b15cd80c54c33117  prettytable-0.7.2.tar.gz"