blob: 67b7a5936239e0b9669f752f84e28000de223d17 (
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
44
45
46
|
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-vine
pkgver=1.1.4
pkgrel=0
pkgdesc="futures and promises implementation for python"
url="https://pypi.python.org/pypi/vine/"
arch="noarch"
license="BSD"
depends=""
makedepends="python2-dev python3-dev py-setuptools"
install=""
subpackages="py2-vine:py2 py3-vine:py3"
source="https://files.pythonhosted.org/packages/source/v/vine/vine-$pkgver.tar.gz"
builddir="$srcdir/vine-$pkgver"
build() {
cd "$_builddir"
python2 setup.py build
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python="$1"
pkgdesc="$pkgdesc ${python#python}"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
py2() {
cd "$builddir"
_py python2
}
py3() {
cd "$builddir"
_py python3
}
sha512sums="b85438cd30b3cb6c642380b3da120783cf2d4306366e04a141061d40cf6b8ce5b52ca15562b71f28392ad376c1f160b39162fa7933665b5c21179b0994347460 vine-1.1.4.tar.gz"
|