[arch-commits] Commit in python-libtmux/repos (2 files)

David Runge dvzrv at gemini.archlinux.org
Mon Aug 1 23:07:57 UTC 2022


    Date: Monday, August 1, 2022 @ 23:07:57
  Author: dvzrv
Revision: 1259722

archrelease: copy trunk to community-staging-any

Added:
  python-libtmux/repos/community-staging-any/
  python-libtmux/repos/community-staging-any/PKGBUILD
    (from rev 1259721, python-libtmux/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-libtmux/repos/community-staging-any/PKGBUILD (from rev 1259721, python-libtmux/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2022-08-01 23:07:57 UTC (rev 1259722)
@@ -0,0 +1,33 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=libtmux
+pkgname=python-libtmux
+pkgver=0.12.0
+pkgrel=1
+pkgdesc="Python api for tmux"
+arch=(any)
+url="https://libtmux.git-pull.com/"
+license=(MIT)
+depends=(python tmux)
+makedepends=(python-build python-installer python-poetry-core python-wheel)
+checkdepends=(python-pytest procps-ng)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('5b18addcc6cfa2956d266a416fd5ecbb09292e16e4d0e7191aa4d2f28bfdf9ca9edfaf57d7796e6ccb3e30135792a2c99727a82d2a01a9349c554d76a12b2ec4')
+b2sums=('2a54274d5ad5035a656429f474f81549a80ce5332bb390f23c10587ef1c7218ddb386cb82902184e55c3d2d515ade772ffaae79cea83bfe53912f9d29cfc3527')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest -v
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+  install -vDm 644 {CHANGES,README.md} -t "$pkgdir/usr/share/doc/$pkgname"
+}



More information about the arch-commits mailing list