[arch-commits] Commit in python-portend/repos (3 files)
Eli Schwartz
eschwartz at archlinux.org
Sun Jul 1 13:16:02 UTC 2018
Date: Sunday, July 1, 2018 @ 13:16:02
Author: eschwartz
Revision: 349403
archrelease: copy trunk to community-staging-any
Added:
python-portend/repos/community-staging-any/
python-portend/repos/community-staging-any/LICENSE
(from rev 349402, python-portend/trunk/LICENSE)
python-portend/repos/community-staging-any/PKGBUILD
(from rev 349402, python-portend/trunk/PKGBUILD)
----------+
LICENSE | 7 ++++++
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+)
Copied: python-portend/repos/community-staging-any/LICENSE (from rev 349402, python-portend/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE (rev 0)
+++ community-staging-any/LICENSE 2018-07-01 13:16:02 UTC (rev 349403)
@@ -0,0 +1,7 @@
+Copyright Jason R. Coombs
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copied: python-portend/repos/community-staging-any/PKGBUILD (from rev 349402, python-portend/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-01 13:16:02 UTC (rev 349403)
@@ -0,0 +1,65 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Laurent Soest <laurent.soest(at)gmail.com>
+
+pkgbase='python-portend'
+_pkgbase="${pkgbase//python-/}"
+pkgname=('python-portend' 'python2-portend')
+pkgver=2.3
+pkgrel=2
+pkgdesc="Use portend to monitor TCP ports for bound or unbound states."
+arch=('any')
+url="https://github.com/jaraco/portend"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-setuptools-scm'
+ 'python2-setuptools-scm' 'python-tox' 'python2-tox' 'python-tempora'
+ 'python2-tempora')
+source=("${_pkgbase}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/ab/8f/70f5babd4a6a7c6a471e834c53be3ee3c89a6b3b16d6a85b2d25f2dc2671/${_pkgbase}-${pkgver}.tar.gz"
+ 'LICENSE')
+sha512sums=('eb438c9967bd1540534bc9deb5bdb8b7ed41c7328aeee0c9376b00018ec6c07773c0d782efe3f460cf6e68bd4d899bceedf0c581dd29080cd3fe44a3a17b0004'
+ '1106afed483b7258e4ae89c5d9459c3834412b31aac90169725ed62d2ab44f61f6f79e894d4c9e4d8bd99e14530ab778df2187784f0b25eaab86d312fad68944')
+
+prepare() {
+ cp -r "${srcdir}/${_pkgbase}-${pkgver}" "${srcdir}/${_pkgbase}-${pkgver}-py2"
+}
+
+build() {
+ # setuptools wont find version from git tag
+ export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ python ./setup.py build
+
+ cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
+ python2 ./setup.py build
+}
+
+check() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ tox
+
+ cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
+ tox2
+}
+
+package_python-portend() {
+ depends=('python' 'python-tempora')
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ python ./setup.py install --root="${pkgdir}" --optimize=1
+
+ # the author has promised to include a LICENSE file in future releases:
+ # https://github.com/jaraco/skeleton/issues/1
+ # for now the LICENSE file has been taken from:
+ # https://github.com/jaraco/skeleton/blob/skeleton/LICENSE
+ install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-portend() {
+ depends=('python2' 'python2-tempora')
+ cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
+ python2 ./setup.py install --root="${pkgdir}" --optimize=1
+
+ # the author has promised to include a LICENSE file in future releases:
+ # https://github.com/jaraco/skeleton/issues/1
+ # for now the LICENSE file has been taken from:
+ # https://github.com/jaraco/skeleton/blob/skeleton/LICENSE
+ install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list