mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/py-ansicolors: new aport
ANSI colors for Python http://github.com/verigak/colors/
This commit is contained in:
parent
543af1de79
commit
fcda338663
41
testing/py-ansicolors/APKBUILD
Normal file
41
testing/py-ansicolors/APKBUILD
Normal file
@ -0,0 +1,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="python"
|
||||
depends_dev=""
|
||||
makedepends="python-dev py-setuptools"
|
||||
install=""
|
||||
subpackages=""
|
||||
source="http://pypi.python.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"
|
||||
python setup.py build || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
python 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"
|
||||
Loading…
x
Reference in New Issue
Block a user