summaryrefslogtreecommitdiff
path: root/pcr/python-repoze.lru/PKGBUILD
blob: 70b95cb7e46b4b06044deac4de5988064cfc61f0 (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
# Contributor (Arch): speps <speps at aur dot archlinux dot org>
# Contributor (Arch): DasIch <dasdasich@googlemail.com>
# Maintainer : Paraobla GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>

_name=repoze.lru
pkgname=python-$_name
pkgver=0.6
pkgrel=1
pkgdesc="A tiny LRU cache implementation and decorator"
arch=('any')
license=('custom:BSD')
url="http://pypi.python.org/pypi/$_name"
depends=('python')
makedepends=('python-distribute')
provides=(python-repoze-lru)
conflicts=(python-repoze-lru)
replaces=(python-repoze-lru)
source=("http://pypi.python.org/packages/source/r/$_name/$_name-$pkgver.tar.gz")

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

package() {
  cd "$srcdir/$_name-$pkgver"
  python setup.py install --root="$pkgdir/"

  # license
  install -Dm644 LICENSE.txt \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}