[arch-commits] Commit in dbus-python/repos (3 files)
Jan de Groot
jgc at archlinux.org
Sun Jun 10 10:37:09 UTC 2012
Date: Sunday, June 10, 2012 @ 06:37:09
Author: jgc
Revision: 161365
db-move: moved dbus-python from [testing] to [extra] (i686)
Added:
dbus-python/repos/extra-i686/PKGBUILD
(from rev 161364, dbus-python/repos/testing-i686/PKGBUILD)
Deleted:
dbus-python/repos/extra-i686/PKGBUILD
dbus-python/repos/testing-i686/
----------+
PKGBUILD | 92 +++++++++++++++++++++++++++++++++++++++++++------------------
1 file changed, 65 insertions(+), 27 deletions(-)
Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2012-06-10 09:46:50 UTC (rev 161364)
+++ extra-i686/PKGBUILD 2012-06-10 10:37:09 UTC (rev 161365)
@@ -1,27 +0,0 @@
-# $Id$
-# Contributor: Jan de Groot <jgc at archlinux.org>
-
-pkgname=dbus-python
-pkgver=1.0.0
-pkgrel=1
-pkgdesc="Python bindings for DBUS"
-arch=('i686' 'x86_64')
-license=('GPL' 'LGPL')
-url="http://www.freedesktop.org/wiki/Software/DBusBindings"
-depends=('dbus-core' 'python2')
-makedepends=('docutils' 'dbus-glib')
-optdepends=('dbus-glib: glib mainloop support')
-options=('!libtool')
-source=(http://dbus.freedesktop.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('775a8235736bf760cdd96e2d76546469')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- PYTHON=python2 ./configure --prefix=/usr
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
-}
Copied: dbus-python/repos/extra-i686/PKGBUILD (from rev 161364, dbus-python/repos/testing-i686/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2012-06-10 10:37:09 UTC (rev 161365)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=dbus-python
+pkgname=('python-dbus' 'python2-dbus' 'python-dbus-common')
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Python bindings for DBUS"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL')
+url="http://www.freedesktop.org/wiki/Software/DBusBindings"
+makedepends=('docutils' 'dbus-glib' 'python' 'python2')
+options=('!libtool')
+source=(http://dbus.freedesktop.org/releases/${pkgbase}/${pkgbase}-${pkgver}.tar.gz)
+md5sums=('41a459bbbb5fd92eeebd632623af0bd7')
+
+build() {
+ cd "${srcdir}"
+ mkdir build-python2 build-python3
+ cd "${srcdir}/build-python2"
+ PYTHON=python2 ../${pkgbase}-${pkgver}/configure --prefix=/usr
+ make
+
+
+ cd "${srcdir}/build-python3"
+ ../${pkgbase}-${pkgver}/configure --prefix=/usr
+ make
+}
+
+package_python-dbus-common() {
+ pkgdesc="Common dbus-python files shared between python-dbus and python2-dbus"
+
+ cd "${srcdir}/build-python3"
+ make DESTDIR="${pkgdir}" install-data
+ rm -rf "${pkgdir}"/usr/lib/python*
+}
+
+package_python-dbus() {
+ depends=('python-dbus-common' 'python' 'dbus-core')
+ optdepends=('dbus-glib: glib mainloop support')
+ pkgdesc="Python 3.2 bindings for DBUS"
+
+ cd "${srcdir}/build-python3"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}/usr/share"
+ rm -rf "${pkgdir}/usr/include"
+ rm -rf "${pkgdir}/usr/lib/pkgconfig"
+}
+
+package_python2-dbus() {
+ depends=('python-dbus-common' 'python2' 'dbus-core')
+ optdepends=('dbus-glib: glib mainloop support')
+ pkgdesc="Python 2.7 bindings for DBUS"
+ replaces=('dbus-python')
+ conflicts=('dbus-python')
+ provides=("dbus-python=$pkgver")
+
+ cd "${srcdir}/build-python2"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}/usr/share"
+ rm -rf "${pkgdir}/usr/include"
+ rm -rf "${pkgdir}/usr/lib/pkgconfig"
+}
More information about the arch-commits
mailing list