[arch-commits] Commit in python-libtmux/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Mon Jun 3 21:04:58 UTC 2019


    Date: Monday, June 3, 2019 @ 21:04:58
  Author: dvzrv
Revision: 476788

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  100 ++++++++++++++++++++++++-------------------------------------
 1 file changed, 40 insertions(+), 60 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-03 21:04:53 UTC (rev 476787)
+++ PKGBUILD	2019-06-03 21:04:58 UTC (rev 476788)
@@ -1,60 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-_name=libtmux
-pkgbase=python-libtmux
-pkgname=('python-libtmux' 'python2-libtmux')
-pkgver=0.8.1
-pkgrel=1
-pkgdesc="Python api for tmux"
-arch=('any')
-url="https://libtmux.git-pull.com/"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'tmux')
-checkdepends=('python-pytest' 'python2-pytest' 'procps-ng')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/tony/${_name}/archive/v${pkgver}.tar.gz")
-# pypi sources don't include the tests: https://github.com/tmux-python/libtmux/issues/173
-#source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('a26410aa6840325f2572e430427a1805c7086a19ea49ff7794a6542e8c2805b15d306f1a01adb3bea23b4c99980c4c40b0de431dde16bd7f35491011314df13e')
-
-build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
-  python2 setup.py build
-}
-
-check() {
-  cd "${_name}-${pkgver}"
-  python -m pytest
-  python2 -m pytest
-}
-
-package_python-libtmux() {
-  depends=('python' 'tmux')
-  cd "${_name}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # license
-  install -vDm 644 LICENSE \
-    "${pkgdir}/usr/share/licenses/${pkgname[0]}/LICENSE"
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname[0]}" \
-    -vDm 644 {CHANGES,README.rst,TODO}
-}
-
-package_python2-libtmux() {
-  depends=('python2' 'tmux')
-  cd "${_name}-${pkgver}"
-  python2 setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # license
-  install -vDm 644 LICENSE \
-    "${pkgdir}/usr/share/licenses/${pkgname[1]}/LICENSE"
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname[1]}" \
-    -vDm 644 {CHANGES,README.rst,TODO}
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-libtmux/repos/community-any/PKGBUILD (from rev 476787, python-libtmux/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-06-03 21:04:58 UTC (rev 476788)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=libtmux
+pkgname=python-libtmux
+pkgver=0.8.2
+pkgrel=1
+pkgdesc="Python api for tmux"
+arch=('any')
+url="https://libtmux.git-pull.com/"
+license=('MIT')
+depends=('python' 'tmux')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'procps-ng')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tmux-python/${_name}/archive/v${pkgver}.tar.gz")
+# pypi sources don't include the tests: https://github.com/tmux-python/libtmux/issues/173
+# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('e5f3768f4ddd746c5380a92899961be05b1b6c567d9333720b0fd9ed124131671bbecf1c04a7c4e658092424b6dc89dd656ba559385b0a6f673f9895dd6c829c')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  python -m pytest
+}
+
+package() {
+  cd "${_name}-${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 -vDm 644 {CHANGES,README.rst,TODO} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}


More information about the arch-commits mailing list