aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-termcolor/APKBUILD
blob: b5ed4336783dc7537fcc553f2188edea85915e83 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-termcolor
_pkgname=termcolor
pkgver=1.1.0
pkgrel=4
pkgdesc="ANSII Color formatting for output in terminal."
url="https://pypi.org/project/termcolor/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

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

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
}
sha512sums="4bd06bf4405a9ef6c005cd4d159ef602f7fc7fccb3e57586da1187c402f4d0b9051ef930cae423065c51ff4be8a22ceae556a61a6b3c8c519d623c066c340b53  termcolor-1.1.0.tar.gz"