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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 17:07:34 UTC 2020


    Date: Monday, November 9, 2020 @ 17:07:34
  Author: felixonmars
Revision: 747776

archrelease: copy trunk to community-staging-any

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

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

Copied: python-netaddr/repos/community-staging-any/PKGBUILD (from rev 747774, python-netaddr/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 17:07:34 UTC (rev 747776)
@@ -0,0 +1,47 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sebastien LEDUC <sebastien at sleduc.fr>
+# Contributor: Gilles CHAUVIN <gcnweb at gmail dot com>
+
+pkgname=python-netaddr
+_pyname=netaddr
+pkgver=0.8.0
+pkgrel=2
+pkgdesc='Pure Python network address representation and manipulation library'
+url='https://github.com/drkjam/netaddr'
+arch=('any')
+license=('BSD')
+depends=('python')
+makedepends=('python-sphinx')
+checkdepends=('python-pytest' 'python-pytest-cov')
+optdepends=('ipython: netaddr interractive command support')
+options=('!makeflags')
+source=(https://github.com/drkjam/${_pyname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('0b518ef240b81af425a5aaa6f087b10dece3f352c0c67cde8553ac00daa9d1890637c05d16740e2c23b30ae068c1b4c409ca8291e02093699fafd638701b9069')
+b2sums=('c0a361c100490c17203aad14eb14a3e09c63f5a6ce2f4b7e85bc57942329ac4603a1d4b3a09a9ab964a775dfb50a8746f6dd4a05d2f9bba01674624a7d7b46c1')
+
+prepare() {
+  cd ${_pyname}-${pkgver}
+  sed -r 's|#!/usr/bin/env python||g' -i netaddr/eui/ieee.py netaddr/ip/iana.py
+}
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python setup.py build
+  make -C docs man text
+}
+
+check() {
+  cd ${_pyname}-${pkgver}
+  LC_ALL='en_US.UTF-8' py.test
+}
+
+package_python-netaddr() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/build/man/netaddr.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list