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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 09:29:51 UTC 2019


    Date: Monday, November 4, 2019 @ 09:29:51
  Author: felixonmars
Revision: 523898

archrelease: copy trunk to community-staging-any

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

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

Copied: tmuxp/repos/community-staging-any/PKGBUILD (from rev 523897, tmuxp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 09:29:51 UTC (rev 523898)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+pkgname=tmuxp
+pkgver=1.5.3
+pkgrel=3
+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=('9d803e715b1b75aec8940996db579ef545f5d291e64c7d4551930ec5ad683d8a5f737cc22328f0d528e709da6f613c8b3451637ec3e93ac7e9d34aea64faa0e0')
+
+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
+  py.test -k "not test_pane_order"
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}/"
+  # license
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  # docs
+  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
+    -vDm 644 {CHANGES,README.rst}
+}
+
+# vim:set ts=2 sw=2 et:}



More information about the arch-commits mailing list