Date: Tuesday, February 13, 2018 @ 11:46:52
  Author: dvzrv
Revision: 293804

archrelease: copy trunk to community-x86_64

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

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

Copied: python-iwlib/repos/community-x86_64/PKGBUILD (from rev 293803, 
python-iwlib/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2018-02-13 11:46:52 UTC (rev 293804)
@@ -0,0 +1,58 @@
+# Maintainer: David Runge <d...@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}
+}

Reply via email to