# Maintainer: Andy Weidenbaum pkgname=python2-coloredlogs pkgver=3.1.1 pkgrel=1 pkgdesc="Colored stream handler for the logging module" arch=('any') depends=('python2' 'python2-humanfriendly') makedepends=('python2-setuptools') url="https://github.com/xolox/python-coloredlogs" license=('MIT') options=(!emptydirs) source=(https://pypi.python.org/packages/source/c/${pkgname#python2-}/${pkgname#python2-}-$pkgver.tar.gz) md5sums=('9c90d6ef8d62925778e7709b829f247d') sha256sums=('77fa21dec1a91a0ffb21c4d55a04128c0ae611b86bad01ff22110f792b13dd62') provides=('ansi2html' 'python2-coloredlogs') conflicts=('ansi2html') build() { cd "$srcdir/${pkgname#python2-}-$pkgver" msg2 'Building...' python2 setup.py build } package() { cd "$srcdir/${pkgname#python2-}-$pkgver" msg2 'Installing...' python2 setup.py install --root="$pkgdir" --optimize=1 }