summaryrefslogtreecommitdiffstats
path: root/abs/core/python-decorator/PKGBUILD
blob: e933da07971af1f92de6f7a9c4052eb2b2693145 (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
# Maintainer: Thomas Dziedzic < gostrc at gmail >
# Contributor: Pierre Chapuis <catwell at archlinux dot us>

pkgname=python-decorator
pkgver=3.2.0
pkgrel=2
pkgdesc='Python Decorator module'
arch=('any')
url='http://pypi.python.org/pypi/decorator'
license=('BSD')
depends=('python2')
source=("http://pypi.python.org/packages/source/d/decorator/decorator-${pkgver}.tar.gz"
        'LICENSE.txt')
md5sums=('6208cd51365083c168ab3a04426a646b'
         '0ca76d2c707f09dbb04acc425ea1a08b')

build() {
  cd decorator-${pkgver}

  python2 setup.py build
}

package() {
  cd decorator-${pkgver}

  python2 setup.py install --root=${pkgdir} --optimize=1

  install -D -m644 ${srcdir}/LICENSE.txt \
    ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}