aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py-click-utils/APKBUILD
blob: a3cdba5c5e68cf89be14a77515050634556d2fcc (plain) (tree)








































                                                                                                                                                                       
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-click-utils
_pkgname=click-utils
pkgver=0.2.1
pkgrel=0
pkgdesc="A set of utilites for writing command line programs with Click"
url="https://github.com/slafs/click-utils"
arch="noarch"
license="BSD"
depends="python py-click"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.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="3508334ee30cc2b10be2e6665ee48784  click-utils-0.2.1.tar.gz"
sha256sums="a0cc935d6bb7f5c6659231e58765676a1779395fa40b708f3983794d3380b4c0  click-utils-0.2.1.tar.gz"
sha512sums="801ccb2a65cf50ade14e4b9b477cab1468a903dfbcabd86de4d0214604c5c19af4328c1b6477f251f15efbd3408c30540faf551f8d3c4a6806aec12cf9555450  click-utils-0.2.1.tar.gz"