[arch-commits] Commit in python-netaddr/repos/community-staging-any (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 10:07:01 UTC 2020
Date: Thursday, November 12, 2020 @ 10:07:01
Author: foutrelis
Revision: 751408
archrelease: copy trunk to community-staging-any
Added:
python-netaddr/repos/community-staging-any/PKGBUILD
(from rev 751407, python-netaddr/trunk/PKGBUILD)
Deleted:
python-netaddr/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 94 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 47 insertions(+), 47 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-12 10:06:59 UTC (rev 751407)
+++ PKGBUILD 2020-11-12 10:07:01 UTC (rev 751408)
@@ -1,47 +0,0 @@
-# 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:
Copied: python-netaddr/repos/community-staging-any/PKGBUILD (from rev 751407, python-netaddr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-12 10:07:01 UTC (rev 751408)
@@ -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=3
+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