[arch-commits] Commit in libvirt-python/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Tue Jan 27 11:50:35 UTC 2015


    Date: Tuesday, January 27, 2015 @ 12:50:35
  Author: spupykin
Revision: 126637

upgpkg: libvirt-python 1.2.12-1

upd

Modified:
  libvirt-python/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-01-27 11:50:28 UTC (rev 126636)
+++ PKGBUILD	2015-01-27 11:50:35 UTC (rev 126637)
@@ -2,26 +2,32 @@
 # Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
 # Contributor: Jonathan Wiersma <archaur at jonw dot org>
 
-pkgname=libvirt-python
-pkgver=1.2.11
+pkgbase=libvirt-python
+pkgname=(libvirt-python libvirt-python3)
+pkgver=1.2.12
 pkgrel=1
 pkgdesc="libvirt python binding"
 arch=('i686' 'x86_64')
 url="http://libvirt.org/"
 license=('LGPL')
-depends=('python2' 'libvirt')
-makedepends=('git')
+makedepends=('python' 'python2' 'libvirt')
 options=('emptydirs')
 install="libvirt-python.install"
 source=("http://libvirt.org/sources/python/libvirt-python-$pkgver.tar.gz")
-md5sums=('b9ea1c2a44d3c7468e786fb827d90aee')
+md5sums=('4255f2bfece23aacbc8d94256598b302')
 
-build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  python2 setup.py build
-}
+package_libvirt-python() {
+  depends=('python2' 'libvirt')
 
-package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "$srcdir/$pkgbase-$pkgver"
+  python2 setup.py clean
   python2 setup.py install --root=$pkgdir
 }
+
+package_libvirt-python3() {
+  depends=('python' 'libvirt')
+
+  cd "$srcdir/$pkgbase-$pkgver"
+  python setup.py clean
+  python setup.py install --root=$pkgdir
+}



More information about the arch-commits mailing list