aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-futures/APKBUILD
blob: 4862d209f2bc3e41820608721b1874d06bd11eb5 (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
42
43
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-futures
_pkgname=futures
pkgver=3.0.5
pkgrel=0
pkgdesc="Backport of the concurrent.futures package from Python 3.2"
url="http://code.google.com/p/pythonfutures/"
arch="noarch"
license="BSD"
depends=""
depends_dev=""
makedepends="python2-dev"
install=""
subpackages="py2-${pkgname/py-/}:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	mkdir -p "$pkgdir"
}

_py() {
	local python=$1
	pkgdesc="$pkgdesc - $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python" 	
	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

_py2() {
	_py python2
	replaces="$pkgname"
}

md5sums="ced2c365e518242512d7a398b515ff95  futures-3.0.5.tar.gz"
sha256sums="0542525145d5afc984c88f914a0c85c77527f65946617edb5274f72406f981df  futures-3.0.5.tar.gz"
sha512sums="29f366a273600924acba4b78d53e2f911379da04a7067c3bc2911c20c0fe880300fc2b8c91d8f1b6689e5732b79eeb4198fde56854ab2b7caf47382ad5942435  futures-3.0.5.tar.gz"