[arch-commits] Commit in python-iwlib/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Sun Jul 22 21:38:40 UTC 2018


    Date: Sunday, July 22, 2018 @ 21:38:40
  Author: dvzrv
Revision: 362874

archrelease: copy trunk to community-x86_64

Added:
  python-iwlib/repos/community-x86_64/PKGBUILD
    (from rev 362873, python-iwlib/trunk/PKGBUILD)
Deleted:
  python-iwlib/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  120 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 62 insertions(+), 58 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-22 21:38:32 UTC (rev 362873)
+++ PKGBUILD	2018-07-22 21:38:40 UTC (rev 362874)
@@ -1,58 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-
-pkgbase=python-iwlib
-pkgname=('python-iwlib' 'python2-iwlib')
-pkgver=1.5
-pkgrel=9
-pkgdesc='Python module to interface with iwlib'
-arch=('x86_64')
-url="https://github.com/nathan-hoad/python-iwlib"
-license=('GPL2')
-makedepends=('python-setuptools' 'python2-setuptools' 'wireless_tools')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/nathan-hoad/${pkgbase}/archive/${pkgver}.tar.gz")
-sha512sums=('2b79e412949a465d1383620745b6bfbf5924ef8ed47d459882afc5c86e54d10d1b963055df7076a481fb7bd6ade1d318ce35ed36ee5c129c048bbf6b1790f432')
-
-prepare(){
-  cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
-}
-
-build() {
-  cd "${pkgname[0]}-${pkgver}"
-  python setup.py build
-  cd ../"${pkgname[1]}-${pkgver}"
-  python2 setup.py build
-}
-
-check() {
-  cd "${pkgname[0]}-${pkgver}"
-  export PYTHONPATH="${srcdir}/${pkgname[0]}-${pkgver}/build/lib.linux-x86_64-3.6/":${PYTHONPATH}
-  py.test
-  cd ../"${pkgname[1]}-${pkgver}"
-  export PYTHONPATH="${srcdir}/${pkgname[1]}-${pkgver}/build/lib.linux-x86_64-2.7/":${PYTHONPATH}
-  py.test2
-}
-
-package_python-iwlib() {
-  depends=('python-cffi' 'wireless_tools')
-  cd "${pkgname[0]}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname[0]}/" \
-    -vDm644 {AUTHORS,README.rst}
-}
-
-package_python2-iwlib() {
-  depends=('python2-cffi' 'wireless_tools')
-  cd "${pkgname[1]}-${pkgver}"
-  python2 setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname[0]}/" \
-    -vDm644 {AUTHORS,README.rst}
-}

Copied: python-iwlib/repos/community-x86_64/PKGBUILD (from rev 362873, python-iwlib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-07-22 21:38:40 UTC (rev 362874)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: David Runge <dave at sleepmap.de>
+
+_name=iwlib
+pkgbase=python-iwlib
+pkgname=('python-iwlib' 'python2-iwlib')
+pkgver=1.6.1
+pkgrel=1
+pkgdesc='Python module to interface with iwlib'
+arch=("$CARCH")
+url="https://github.com/nathan-hoad/python-iwlib"
+license=('GPL2')
+makedepends=('python-cffi' 'python-setuptools' 'python2-cffi' 'python2-setuptools' 'wireless_tools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('dd6e742c8563408a0aa9c873059705eb92b294d4adc9d40d784eee148b4053b39aab4e41696328b7397ee4587ea1ce05e7dc6577705bb30d0fae2b857db7f95e')
+
+prepare(){
+  mv -v "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  local _py3_ver=$(python3 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))")
+  local _py2_ver=$(python2 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))")
+  local PYTHON2_PATH="${srcdir}/${pkgbase}-${pkgver}/build/lib.linux-x86_64-${_py2_ver}/:${PYTHONPATH}"
+  local PYTHON3_PATH="${srcdir}/${pkgbase}-${pkgver}/build/lib.linux-x86_64-${_py3_ver}/:${PYTHONPATH}"
+  export PYTHONPATH="${PYTHON3_PATH}"
+  py.test
+  export PYTHONPATH="${PYTHON2_PATH}"
+  py.test2
+}
+
+package_python-iwlib() {
+  depends=('python-cffi' 'wireless_tools')
+  cd "${pkgbase}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  # docs
+  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+    -vDm 644 {AUTHORS,README.rst}
+}
+
+package_python2-iwlib() {
+  depends=('python2-cffi' 'wireless_tools')
+  cd "${pkgbase}-${pkgver}"
+  python2 setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  # docs
+  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+    -vDm 644 {AUTHORS,README.rst}
+}



More information about the arch-commits mailing list