Date: Wednesday, February 14, 2018 @ 13:04:57
  Author: dvzrv
Revision: 294297

upgpkg: python-ethtool 0.13-7

Rebuild for community. Adding first checkdepends.
However, check() is disabled for now, as some tests require root to be run.

Modified:
  python-ethtool/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-14 13:03:09 UTC (rev 294296)
+++ PKGBUILD    2018-02-14 13:04:57 UTC (rev 294297)
@@ -4,17 +4,18 @@
 pkgbase=python-ethtool
 pkgname=('python-ethtool' 'python2-ethtool')
 pkgver='0.13'
-pkgrel='6'
+pkgrel='7'
 pkgdesc='Python bindings for the ethtool kernel interface.'
 arch=('x86_64')
 url="https://github.com/fedora-python/python-ethtool";
 license=('GPL')
 makedepends=('asciidoc' 'libnl' 'python-setuptools' 'python2-setuptools')
+checkdepends=('net-tools')
 
source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/fedora-python/${pkgbase}/archive/v${pkgver}.tar.gz";)
 
sha512sums=('f7fe0dadae8b163a0116c64b1b3c6897bc7d302d1b764abf26e853342495ab3fefc0558ab08c6081b1cda535c134c7181c08951c96c1cf389ae069acc4c8efab')
 
 prepare(){
-  cp -a "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
+  cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
 }
 
 build() {
@@ -28,6 +29,15 @@
   a2x -v -d manpage -f manpage "man/pifconfig.8.asciidoc"
 }
 
+# build without tests for now
+# https://github.com/fedora-python/python-ethtool/issues/40
+#check() {
+#  cd "${pkgname[0]}-${pkgver}"
+#  python setup.py test
+#  cd ../"${pkgname[1]}-${pkgver}"
+#  python2 setup.py test
+#}
+
 package_python-ethtool() {
   depends=('python' 'libnl')
   cd "${pkgname[0]}-${pkgver}"

Reply via email to