[arch-commits] Commit in pyudev/repos (2 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sun Dec 25 18:48:38 UTC 2016
Date: Sunday, December 25, 2016 @ 18:48:37
Author: bpiotrowski
Revision: 202272
archrelease: copy trunk to community-staging-any
Added:
pyudev/repos/community-staging-any/
pyudev/repos/community-staging-any/PKGBUILD
(from rev 202271, pyudev/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: pyudev/repos/community-staging-any/PKGBUILD (from rev 202271, pyudev/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 18:48:37 UTC (rev 202272)
@@ -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=2
+arch=('any')
+url='http://pyudev.readthedocs.org/en/latest/index.html'
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+optdepends=('python2-pyqt: 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=('pyqt: 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-pyqt: 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