archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-ansicolors / trunk / PKGBUILD
blob519f4a766d49355f1cdfa784d5c4e9224cb2e15a
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-ansicolors
4 pkgver=1.1.8
5 _commit=c965f5b9103c5bd32a1572adb8024ebe83278fb0
6 pkgrel=6
7 pkgdesc="ANSI colors for Python"
8 url="https://github.com/jonathaneunice/colors"
9 license=('ISC')
10 arch=('any')
11 depends=('python')
12 makedepends=('python-setuptools')
13 checkdepends=('python-pytest')
14 source=("https://github.com/jonathaneunice/colors/archive/$_commit/$pkgname-$_commit.tar.gz")
15 sha512sums=('f60770496614b75fc2a6bab15c55a87c245ac233c907708572e76d4701690895b3a350b7ab2934304262a8e9076fbff64a9792c2345fe5994af0c6c09209e6a2')
17 build() {
18   cd colors-$_commit
19   python setup.py build
22 check() {
23   cd colors-$_commit
24   python -m pytest
27 package() {
28   cd colors-$_commit
29   python setup.py install --root="$pkgdir" --optimize=1
31   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/