aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-futures/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-futures/APKBUILD')
-rw-r--r--community/py-futures/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/py-futures/APKBUILD b/community/py-futures/APKBUILD
new file mode 100644
index 000000000..4862d209f
--- /dev/null
+++ b/community/py-futures/APKBUILD
@@ -0,0 +1,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"