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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 16:49:55 UTC 2018


    Date: Saturday, June 30, 2018 @ 16:49:55
  Author: felixonmars
Revision: 348573

archrelease: copy trunk to community-staging-any

Added:
  pyudev/repos/community-staging-any/
  pyudev/repos/community-staging-any/PKGBUILD
    (from rev 348572, pyudev/trunk/PKGBUILD)

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

Copied: pyudev/repos/community-staging-any/PKGBUILD (from rev 348572, pyudev/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 16:49:55 UTC (rev 348573)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: examon <examon.mail[at]gmail[dot]com>
+# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
+# Contributor: Dwight Schauer <dschauer at ti.com>
+
+pkgbase=pyudev
+pkgname=('python-pyudev' 'python2-pyudev')
+pkgver=0.21.0
+pkgrel=4
+arch=('any')
+url='http://pyudev.readthedocs.org/en/latest/index.html'
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+optdepends=('python2-pyqt5: PyQt integration'
+            'python2-gobject2: Glib integration'
+            'wxpython: WX integration')
+source=(https://github.com/pyudev/pyudev/archive/v$pkgver.tar.gz)
+md5sums=('5a15739f93bdeb70243b7ed4ed510604')
+
+build() {
+  cp -rf "${srcdir}/${pkgbase}-${pkgver}" "${srcdir}/python2-${pkgbase}-${pkgver}"
+}
+
+package_python-pyudev() {
+  pkgdesc='A pure Python 3.x binding to libudev'
+  depends=('python' 'udev')
+  optdepends=('python-pyqt5: PyQt integration'
+              'python-gobject2: Glib integration')
+  replaces=('pyudev')
+  conflicts=('pyudev')
+  provides=('pyudev')
+  
+  cd ${pkgbase}-${pkgver}
+  python3 setup.py install --root "${pkgdir}" --optimize=1
+}
+
+package_python2-pyudev() {
+  pkgdesc='A pure Python 2.x binding to libudev'
+  depends=('python2' 'udev')
+  optdepends=('python2-pyqt5: PyQt integration'
+              'python2-gobject2: Glib integration'
+              'wxpython: WX integration')
+  replaces=('python2-udev')
+  conflicts=('python2-udev')
+  provides=('python2-udev')
+  
+  cd python2-${pkgbase}-${pkgver}
+  python2 setup.py install --root "${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list