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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 17:12:20 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:12:19
  Author: felixonmars
Revision: 752336

archrelease: copy trunk to community-staging-any

Added:
  tmuxp/repos/community-staging-any/
  tmuxp/repos/community-staging-any/PKGBUILD
    (from rev 752335, tmuxp/trunk/PKGBUILD)

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

Copied: tmuxp/repos/community-staging-any/PKGBUILD (from rev 752335, tmuxp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 17:12:19 UTC (rev 752336)
@@ -0,0 +1,49 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=tmuxp
+pkgver=1.6.2
+pkgrel=2
+pkgdesc="Tmux session manager built on libtmux"
+arch=('any')
+url="https://tmuxp.git-pull.com/en/latest/"
+license=('MIT')
+depends=('python-click' 'python-colorama' 'python-kaptan' 'python-setuptools' 'python-libtmux')
+checkdepends=('python-pytest' 'python-pytest-rerunfailures')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('29c3f7844199dd97acc97ea5d100cee7d5180ec88b344bfd8c40c1d6839945594cde859af1261b448da6d0e8a24dc7bcfb681aef3405a3a682d257273faaaafb')
+b2sums=('53e12e5ac2f6091095f7132d89e24cbc001e663572fc4032333a5e1c1550c4a2b95c93a84ac615bae15fc17b21fee78d617ee34a6fa06f5eaf849672c58b535b')
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  # remove all hard version pinning:
+  # https://github.com/tmux-python/tmuxp/issues/432
+  sed -e 's/==/>=/g' -i requirements/*.txt
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  # test_workspacebuilder.py::test_pane_order does not return:
+  # https://github.com/tmux-python/tmuxp/issues/377
+  pytest -v -k "not test_pane_order"
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}/"
+  # license
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  # docs
+  install -vDm 644 {CHANGES,README.rst} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 examples/*.{json,yaml} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/examples/"
+}
+
+# vim:set ts=2 sw=2 et:}



More information about the arch-commits mailing list