blob: daa8741f84f64574577eb768ab40fb5ac9c142e6 (
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=py-ansicolors
_pkgname=ansicolors
pkgver=1.0.2
pkgrel=0
pkgdesc="ANSI colors for Python"
url="http://github.com/verigak/colors/"
arch="noarch"
license="ISC"
depends="python2"
depends_dev=""
makedepends="python2-dev py-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"
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="d3a19fcd75c89772360e0d2b693fc50f ansicolors-1.0.2.tar.gz"
sha256sums="7664530bb992e3847b61e3aab1580b4df9ed00c5898e80194a9933bc9c80950a ansicolors-1.0.2.tar.gz"
sha512sums="311417b544a81737ff05ad0dda3731e0e0d26528ac829cbc29020f79d62fb67f68de99b5d64e1404309fc7ea02a5884428431eb859c2f6f6e4d89ce899e3bfe4 ansicolors-1.0.2.tar.gz"
|