archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-decorator / trunk / PKGBUILD
blob12c9cc5179acf0cad1a5cd12781e83614eeeb2d2
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Pierre Chapuis <catwell at archlinux dot us>
4 _name=decorator
5 pkgname=python-decorator
6 pkgver=5.1.1
7 pkgrel=3
8 pkgdesc='Python Decorator module'
9 arch=('any')
10 url='https://pypi.python.org/pypi/decorator'
11 license=('BSD')
12 depends=('python')
13 makedepends=('python' 'python-setuptools')
14 source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz"
15         'LICENSE.txt')
16 sha512sums=('584857ffb0c3e52344b473ceb9e28adfd7d789d480a528471f8ab37be055ebe5feb170f41077010e25350e1c311189d45b90773cf12f0043de98ea8ebcde20ab'
17             '0a06dfb3f470b8d3b056bd4e4776df715876d04d0acc86dec536fa7cff0214ba5255833923558d1778db730d080960f31d5e12f939e761530823b6e70646b5c2')
19 build() {
20   cd "$srcdir/$_name-$pkgver"
22   python3 setup.py build
25 package() {
26   cd "${srcdir}/${_name}-${pkgver}"
28   python3 setup.py install --root="${pkgdir}" --optimize=1
30   install -D -m644 "${srcdir}/LICENSE.txt" \
31     "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
34 check() {
35   cd "$srcdir/${_name}-$pkgver"
37   python3 -m unittest discover -vs .