summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dca29c12cf1952e16a9408211e81638dfe00281d (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
# Maintainer: Danilo J. S. Bellini <danilo dot bellini at gmail dot com>
pkgname=python2-backports.functools_lru_cache
_name=${pkgname#python2-}
pkgver=1.6.4
pkgrel=3
pkgdesc='Backport of functools.lru_cache from Python 3.3 to Python 2.7'
arch=('any')
_pypi='https://pypi.python.org'
url="$_pypi/pypi/$_name"
license=('MIT')
depends=('python2-backports')
makedepends=('python2-setuptools-scm')
source=("$_pypi/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('d5ed2169378b67d3c545e5600d363a923b09c456dab1593914935a68ad478271')

build() {
  cd "$srcdir/$_name-$pkgver"
  python2 setup.py build
}

package() {
  cd "$srcdir/$_name-$pkgver"
  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
  find "$pkgdir" -path '*/backports/__init__.py*' -delete
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}