summaryrefslogtreecommitdiffstats
path: root/abs/core/dbus-python
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-06 22:39:29 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-06 22:39:29 (GMT)
commit96a62cfeabeee3b3d43c67c90d949ac38adc1456 (patch)
tree8e9b444a70b1a6f3647f0a4fe7cb0488ec44f19f /abs/core/dbus-python
parentc6056dd1d3dceb2d0ce6f6fa37638f5cc3446034 (diff)
downloadlinhes_pkgbuild-96a62cfeabeee3b3d43c67c90d949ac38adc1456.zip
linhes_pkgbuild-96a62cfeabeee3b3d43c67c90d949ac38adc1456.tar.gz
linhes_pkgbuild-96a62cfeabeee3b3d43c67c90d949ac38adc1456.tar.bz2
dbus-python 1.1.1
-new
Diffstat (limited to 'abs/core/dbus-python')
-rw-r--r--abs/core/dbus-python/PKGBUILD66
-rw-r--r--abs/core/dbus-python/__changelog1
2 files changed, 67 insertions, 0 deletions
diff --git a/abs/core/dbus-python/PKGBUILD b/abs/core/dbus-python/PKGBUILD
new file mode 100644
index 0000000..2ab6eea
--- /dev/null
+++ b/abs/core/dbus-python/PKGBUILD
@@ -0,0 +1,66 @@
+# $Id: PKGBUILD 162393 2012-06-26 18:57:06Z andyrtr $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgbase=dbus-python
+pkgname=('python2-dbus' 'python-dbus-common')
+pkgver=1.1.1
+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' 'python2')
+options=('!libtool')
+source=(http://dbus.freedesktop.org/releases/${pkgbase}/${pkgbase}-${pkgver}.tar.gz)
+md5sums=('742c7432ad0f7c3f98291d58fa2e35dc')
+
+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"
+ conflicts=('dbus-python<1.1.0')
+
+ cd "${srcdir}/build-python2"
+ make DESTDIR="${pkgdir}" install-data
+ rm -rf "${pkgdir}"/usr/lib/python*
+}
+
+package_python-dbus1() {
+ 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"
+}
diff --git a/abs/core/dbus-python/__changelog b/abs/core/dbus-python/__changelog
new file mode 100644
index 0000000..9731eb3
--- /dev/null
+++ b/abs/core/dbus-python/__changelog
@@ -0,0 +1 @@
+removed python3