# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py-twiggy _pkgname=Twiggy pkgver=0.4.5 pkgrel=0 pkgdesc="A Pythonic logger" url="http://twiggy.wearpants.org" arch="noarch" license="BSD" depends="python" depends_dev="" makedepends="python-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" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } md5sums="b0dfbbb7f56342e448af4d22a47a339c Twiggy-0.4.5.tar.gz" sha256sums="4e8f1894e5aee522db6cb245ccbfde3c5d1aa08d31330c7e3af783b0e66eec23 Twiggy-0.4.5.tar.gz" sha512sums="72855bc3a9b25ba95787558b29565b6cf131a5eed5238062ee885d35e0e27a89b802083304a320a6638a96e0c0932c2c43ed4dea31dbc92492037d9ec56f45fd Twiggy-0.4.5.tar.gz"