archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-tubes / repos / community-any / PKGBUILD
blob05191ca968ff4d89472807214b564efd3c734402
1 # Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
3 pkgname=python-tubes
4 pkgver=0.2.1
5 pkgrel=4
6 arch=(any)
7 pkgdesc='A data-processing and flow-control engine for event-driven programs'
8 url='https://github.com/twisted/Tubes'
9 license=(MIT)
10 depends=(python python-characteristic python-six python-twisted)
11 makedepends=(python-setuptools)
12 source=("https://github.com/twisted/tubes/archive/v$pkgver/tubes-v$pkgver.tar.gz")
13 sha512sums=('6f4666f1591c96d0d7f0514f511ad700f6c3976fcf561f0d967f26aead089e682540b74f85b26a68ff6877d5d7775654c9f6959d8a41c25804375ca837ac1815')
15 build() {
16   cd tubes-$pkgver
17   python setup.py build
20 check() {
21   cd tubes-$pkgver
22   PYTHONPATH=. trial tubes
25 package() {
26   cd tubes-$pkgver
27   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
28   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname