# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-bumpy
_pkgname=bumpy
pkgver=0.4.3
pkgrel=0
pkgdesc="A Python file builder and CLI tool"
url="http://github.com/scizzorz/bumpy"
arch="noarch"
license="MIT"
depends="python2"
depends_dev=""
makedepends="python2-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"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="dad1d5f72d326ca01e1b64f48ee911ac  bumpy-0.4.3.tar.gz"
sha256sums="1bff350934a0ca609612ffe5d7d54c22ca0ef520008bb4bd95768f377bc69a9c  bumpy-0.4.3.tar.gz"
sha512sums="b93c8f21d675d7559c35b386b8d82030679b5873c4983ce5d3e55866229bf020f7f063c0f12b643d76acf7da7a524bb4a31a819f44589b6ed9afcaaf29d4fe3a  bumpy-0.4.3.tar.gz"
