# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-pies
_pkgname=pies
pkgver=2.6.1
pkgrel=0
pkgdesc="A tool that support you to write tool for Python 2.6-3.x"
url="https://github.com/timothycrosley/pies"
arch="noarch"
license="MIT"
depends="python2"
depends_dev=""
makedepends="python2-dev"
install=""
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="c91ed38129a7f4425b72c8ffd009e2b5  pies-2.6.1.tar.gz"
sha256sums="87a8996fe0ea9d8af9e36ba895c51978bde6b704ef3abeb0398e6e1a4b8d429c  pies-2.6.1.tar.gz"
sha512sums="f56b01eed4882c2ab4a53eca1d9170715d6e733b0f9d0340faa3ac886e2ee923f3d7ecbde0242b7f507a5f2ffe9d77d9feafe1e3898c9d99087ef2ee54dc9ba5  pies-2.6.1.tar.gz"
