summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python2-futures/PKGBUILD
blob: dcaed421cd59a788b3b8b298ecaefc1884aaf9e8 (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
# $Id$
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>

pkgname=python2-futures
_pkgname=futures
pkgver=3.1.1
pkgrel=1
pkgdesc="Backport of the concurrent.futures package from Python 3.2"
arch=('any')
url="https://github.com/agronholm/pythonfutures"
license=('BSD')
depends=('python2')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/agronholm/pythonfutures/archive/$pkgver.tar.gz"
         LICENSE)
md5sums=('c500fc20a02b83e7ec88dc5bac9649f5'
         'dd6708d05936d3f6c4e20ed14c87b5e3')

build() {
  cd "python$_pkgname-$pkgver"
  python2 setup.py build
}

package() {
  cd "python$_pkgname-$pkgver"
  python2 setup.py install --root "$pkgdir" --optimize=1

  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}