diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 09:08:19 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 09:08:19 +0000 |
commit | fa34e5490fe73fb6e63fc34f72418684496a1a30 (patch) | |
tree | 2cc1874c957b15b9df8c731351174239b49c320d /community/py-futures | |
parent | 94008eadb5add29d12a495d2fd5f9704ba16f9e9 (diff) | |
download | aports-fa34e5490fe73fb6e63fc34f72418684496a1a30.tar.bz2 aports-fa34e5490fe73fb6e63fc34f72418684496a1a30.tar.xz |
community/py-futures: moved from testing, upgraded to 3.0.5, added py2 subpackage
Diffstat (limited to 'community/py-futures')
-rw-r--r-- | community/py-futures/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/community/py-futures/APKBUILD b/community/py-futures/APKBUILD new file mode 100644 index 0000000000..4862d209f2 --- /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" |