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

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 05:01:05 UTC 2020


    Date: Tuesday, November 10, 2020 @ 05:01:04
  Author: foutrelis
Revision: 749231

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pcapy/repos/community-staging-x86_64/
  python-pcapy/repos/community-staging-x86_64/PKGBUILD
    (from rev 749230, python-pcapy/trunk/PKGBUILD)

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

Copied: python-pcapy/repos/community-staging-x86_64/PKGBUILD (from rev 749230, python-pcapy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-10 05:01:04 UTC (rev 749231)
@@ -0,0 +1,45 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Chris Severance aur.severach AatT spamgourmet.com
+
+_pyname=pcapy
+pkgname=python-pcapy
+pkgver=0.11.5
+pkgrel=3
+pkgdesc='Extension module that interfaces with the libpcap packet capture library'
+url='https://github.com/CoreSecurity/pcapy'
+arch=('x86_64')
+license=('Apache')
+depends=('python' 'libpcap')
+makedepends=('python' 'python-setuptools' 'libpcap')
+source=(https://github.com/CoreSecurity/pcapy/archive/${pkgver}/${pkgbase}-${pkgver}.tar.gz)
+sha256sums=('2ff96eb65caee8a45a3ae3edb78d5b4d8debcace9dc2921aefa3be83bb0af9c6')
+sha512sums=('b7b5e81ed94e828501de01758292e18888497e77acc9864421b555b59de26f233c4365093e48213b36e27a51ad887e7f4d5ce2e4fac3f2f1a3006b5b75297977')
+
+prepare() {
+  sed '/self.assertEqual(refNone, sys.getrefcount(None))/d' -i ${_pyname}-${pkgver}/tests/pcapytests.py
+}
+
+build() {
+  echo 'Building python...'
+  (cd ${_pyname}-${pkgver}
+    python setup.py build
+  )
+}
+
+check() {
+  echo 'Checking python...'
+  (cd ${_pyname}-${pkgver}/tests
+    local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+    PYTHONPATH="../build/lib.linux-${CARCH}-${PYTHONVERSION}" \
+      python pcapytests.py
+  )
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 pcapy.html ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -r "${pkgdir}/usr/share/doc/pcapy"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list