aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-pycolorterm/APKBUILD
blob: 7ea203149f56aaa74f9b0cce18670ff9a23af83a (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
33
34
35
36
37
38
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pycolorterm
_pkgname=pycolorterm
pkgver=0.2.1
pkgrel=0
pkgdesc="A Python module to work with color and style formatting"
url="https://github.com/dnmellen/pycolorterm"
arch="noarch"
license="BSD"
replaces="py-pycolorterm" # for backwards compatibility
provides="py-pycolorterm=$pkgver-r$pkgrel" # for backwards compatibility
depends="python3"
depends_dev=""
makedepends="python3-dev py3-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python3 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

sha512sums="c90cb9a0fde94bbd856ba555bb5137004a3a936e028830938bdadf25be94a6f13a0597afb5439681c89d483806375708106be585c236109e83c3e493973e7d4a  pycolorterm-0.2.1.tar.gz"