desktop/python2-futures/PKGBUILD

30 lines
865 B
Bash

# Contributor: 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.2.0
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=('3c950f2ad6682e37cb91ff3e54555e05'
'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"
}