blob: 696aeae921b83e626de0be569e27dd1b2baef392 (
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
42
43
44
45
46
47
|
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=py-colorama
pkgver=0.3.7
pkgrel=0
_python="2 3"
_pyname=${pkgname#py-}
pkgdesc="Cross-platform colored terminal text"
url="https://pypi.python.org/pypi/colorama"
arch="noarch"
license="BSD"
depends=""
depends_dev=""
makedepends="py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
for v in $_python; do
makedepends="$makedepends python$v-dev"
subpackages="$subpackages py$v-$_pyname:package"
done
builddir="$srcdir"/$_pyname-$pkgver
build() {
cd "$builddir"
for v in $_python; do
python$v setup.py build || return 1
done
}
package() {
local v=${subpkgname:2:1}
if [ "$v" ]; then
cd "$builddir"
pkgdesc="$pkgdesc (for python$v)"
depends="$depends python$v"
[ "$v" == "2" ] && replaces=$pkgname
install_if="$pkgname=$pkgver-r$pkgrel python$v"
python$v setup.py install --prefix=/usr --root="$subpkgdir" || return 1
else
mkdir -p "$pkgdir"
fi
}
md5sums="349d2b02618d3d39e5c6aede36fe3c1a colorama-0.3.7.tar.gz"
sha256sums="e043c8d32527607223652021ff648fbb394d5e19cba9f1a698670b338c9d782b colorama-0.3.7.tar.gz"
sha512sums="4d6241afbcbc82c4451911587fd6a54ab1ecb43ca113f465b6966ceb44c79f074220317c249055e28b7023b90a5015819a8048ed11bcc1feb85a2d36df15f3cf colorama-0.3.7.tar.gz"
|