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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:10:09 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:10:09
  Author: felixonmars
Revision: 748529

archrelease: copy trunk to community-staging-any

Added:
  python-pysnmp/repos/community-staging-any/
  python-pysnmp/repos/community-staging-any/PKGBUILD
    (from rev 748527, python-pysnmp/trunk/PKGBUILD)

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

Copied: python-pysnmp/repos/community-staging-any/PKGBUILD (from rev 748527, python-pysnmp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:10:09 UTC (rev 748529)
@@ -0,0 +1,39 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Karol Babioch <karol at babioch.de>
+
+pkgname=python-pysnmp
+_pyname=pysnmp
+pkgver=4.4.12
+pkgrel=2
+pkgdesc='Open source and free implementation of v1/v2c/v3 SNMP engine'
+url='https://github.com/etingof/pysnmp'
+arch=('any')
+license=('BSD')
+depends=('python' 'python-pysmi' 'python-pyasn1')
+makedepends=('python-setuptools' 'python-sphinx')
+options=('!makeflags')
+source=(https://github.com/etingof/pysnmp/archive/v${pkgver}/${_pyname}-v${pkgver}.tar.gz)
+sha256sums=('137d8fd93fffadd0c6d34c65e4dda373f41122a5f1c38537cc9ec4194dc99980')
+sha512sums=('48481e219098369b09cc2ffea6cd51974b64bed0131671cc7a2213ee5eb432c62e0ff5c3700b6be515bd3e90951927e41845c98ae7a339d551f0f4ec19c5e3b1')
+
+build() {
+  cd ${_pyname}-${pkgver}
+  export PYTHONPATH=.
+  python setup.py build
+  make -C docs text man
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  cp -r docs/build/text "${pkgdir}/usr/share/doc/${pkgname}"
+  cp -r examples -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+  install -Dm 644 docs/build/man/${_pyname}.1 "${pkgdir}/usr/share/man/man1/${_pyname}.1"
+  install -Dm 644 docs/build/man/${_pyname}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+  install -Dm 644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list