archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-pydispatcher / trunk / PKGBUILD
blobe821334f41bac701f26e0516c6b2aa285d816642
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Thomas Sarboni <max-k@post.com>
4 pkgname=python-pydispatcher
5 pkgver=2.0.6
6 pkgrel=3
7 pkgdesc="Multi-Producer Multi-Consumer Observer Pattern for Python"
8 url="https://github.com/mcfletch/pydispatcher"
9 arch=('any')
10 license=('BSD')
11 depends=('python')
12 makedepends=('python-setuptools')
13 source=("https://pypi.io/packages/source/P/PyDispatcher/PyDispatcher-$pkgver.tar.gz")
14 sha512sums=('516816cec6ea7cd623b1932ed2fb932029757cdb349d905d8940439b54ce0701d628a2cecb1280001c58b7fc3d8e12cc5cd94c6b89affb54a7e749a7c2ee70ba')
16 build() {
17   cd PyDispatcher-$pkgver
18   python setup.py build
21 check() {
22   cd PyDispatcher-$pkgver
23   python -m unittest discover
26 package() {
27   cd PyDispatcher-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
29   install -Dm644 license.txt -t "$pkgdir"/usr/share/licenses/$pkgname/