Date: Friday, April 7, 2023 @ 05:50:31
Author: felixonmars
Revision: 1440655
archrelease: copy trunk to community-staging-any
Added:
python-tubes/repos/community-staging-any/
python-tubes/repos/community-staging-any/PKGBUILD
(from rev 1440652, python-tubes/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: python-tubes/repos/community-staging-any/PKGBUILD (from rev 1440652,
python-tubes/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 05:50:31 UTC (rev 1440655)
@@ -0,0 +1,29 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=python-tubes
+pkgver=0.2.1
+pkgrel=4
+arch=(any)
+pkgdesc='A data-processing and flow-control engine for event-driven programs'
+url='https://github.com/twisted/Tubes'
+license=(MIT)
+depends=(python python-characteristic python-six python-twisted)
+makedepends=(python-setuptools)
+source=("https://github.com/twisted/tubes/archive/v$pkgver/tubes-v$pkgver.tar.gz")
+sha512sums=('6f4666f1591c96d0d7f0514f511ad700f6c3976fcf561f0d967f26aead089e682540b74f85b26a68ff6877d5d7775654c9f6959d8a41c25804375ca837ac1815')
+
+build() {
+ cd tubes-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd tubes-$pkgver
+ PYTHONPATH=. trial tubes
+}
+
+package() {
+ cd tubes-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}