aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-decorator/APKBUILD
blob: 38468c2137be65a1a06a29072fef63723ffd6bf4 (plain) (blame)
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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-decorator
_pkgname=decorator
pkgver=3.4.2
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="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="9e0536870d2b83ae27d58dbf22582f4d  decorator-3.4.2.tar.gz"
sha256sums="7320002ce61dea6aa24adc945d9d7831b3669553158905cdd12f5d0027b54b44  decorator-3.4.2.tar.gz"
sha512sums="48e5c65ba4243310267e4a75660a55091d5d354e35f31c3c37d886bdf2f8bf915b54d829b9a0a8affe35920e1c981c41a06bcac0eaa8930b47a6ed1c68a71566  decorator-3.4.2.tar.gz"