summaryrefslogtreecommitdiffstats
path: root/testing/py-decorator/APKBUILD
blob: 2c16a17702438ab887f2fe7dc3b5ad4538c44a43 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-decorator
pkgver=3.4.0
pkgrel=0
pkgdesc="Python Decorator module"
url="http://pypi.python.org/pypi/decorator"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/d/decorator/decorator-$pkgver.tar.gz"

_builddir="$srcdir"/decorator-$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="1e8756f719d746e2fc0dd28b41251356  decorator-3.4.0.tar.gz"
sha256sums="c20b404cbb7ee5cebd506688e0114e3cd76f5ce233805a51f36e1a7988d9d783  decorator-3.4.0.tar.gz"
sha512sums="94ae8ff3bf694b72ad85a04d02ed9b58c42d50341fbc7307a12fc5abcb8042d8f67df80b53e63afd4b692c52fbefec83b80b591cba036deee21e281a5e8ff249  decorator-3.4.0.tar.gz"