summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 687523c0ed166793b5930c613540b819df9e5fee (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# SPDX-License-Identifier: AGPL-3.0
#
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Maintainer:  Truocolo <truocolo@aol.com>
# Maintainer:  Pellegrino Prevete <cGVsbGVncmlub3ByZXZldGVAZ21haWwuY29tCg== | base -d>
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>

_py="python2"
_pkg="futures"
_Pkg="python${_pkg}"
pkgname="${_py}-${_pkg}"
_pkgname=futures
pkgver=3.3.0
pkgrel=3
_pkgdesc=(
  "Backport of the concurrent.futures"
  "package from Python 3.2"
)
pkgdesc="${_pkgdesc[*]}"
arch=(
  'any'
)
_ns="agronholm"
_http="http://github.com"
url="${_http}/${_ns}/${_Pkg}"
license=(
  'PSF'
)
depends=(
  "${_py}"
)
makedepends=(
  "${_py}-setuptools"
)
source=(
  "${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
)
sha256sums=(
  '0e2f48368adfa176311654ef85e9010b6ce785b407d5dc9d1f04d248bd18f87e'
)

check() {
  cd \
    "${_Pkg}-${pkgver}"
  "${_py}" \
    setup.py \
    test
}

build() {
  cd \
    "${_Pkg}-${pkgver}"
  "${_py}" \
    setup.py \
    build
}

package() {
  cd \
    "${_Pkg}-${pkgver}"
  "${_py}" \
    setup.py \
      install \
        --root="${pkgdir}" \
	--optimize=1 \
	--skip-build
  install \
    -Dm 644 \
    LICENSE \
    -t \
    "${pkgdir}/usr/share/licenses/${pkgname}"
  install \
    -Dm \
      644 \
    README.rst \
    -t \
   "${pkgdir}/usr/share/doc/${pkgname}"
}

# vim:set sw=2 sts=-1 et: