aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-click-utils/APKBUILD
blob: 7cca2388f64ab0362d07aa69123e7246e2fb9042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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="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="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"