[arch-commits] Commit in dbus-python/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Fri Jan 31 22:43:31 UTC 2020


    Date: Friday, January 31, 2020 @ 22:43:30
  Author: arojas
Revision: 374437

archrelease: copy trunk to testing-x86_64

Added:
  dbus-python/repos/testing-x86_64/
  dbus-python/repos/testing-x86_64/PKGBUILD
    (from rev 374436, dbus-python/trunk/PKGBUILD)

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

Copied: dbus-python/repos/testing-x86_64/PKGBUILD (from rev 374436, dbus-python/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-01-31 22:43:30 UTC (rev 374437)
@@ -0,0 +1,71 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=dbus-python
+pkgname=('python-dbus' 'python2-dbus' 'python-dbus-common')
+pkgver=1.2.16
+pkgrel=1
+pkgdesc="Python bindings for DBUS"
+url="https://www.freedesktop.org/wiki/Software/DBusBindings"
+arch=(x86_64)
+license=('GPL' 'LGPL')
+depends=('dbus' 'glib2')
+makedepends=('python' 'python2' 'autoconf-archive' 'python-sphinx_rtd_theme' 'python-sphinx')
+source=(https://dbus.freedesktop.org/releases/${pkgbase}/${pkgbase}-${pkgver}.tar.gz{,.asc})
+sha256sums=('11238f1d86c995d8aed2e22f04a1e3779f0d70e587caffeab4857f3c662ed5a4'
+            'SKIP')
+validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90')
+
+prepare() {
+  mkdir build-python2 build-python3
+  cd $pkgbase-$pkgver
+  autoreconf -fi
+}
+
+build() {
+  cd build-python2
+  ../${pkgbase}-${pkgver}/configure --prefix=/usr PYTHON_VERSION=2
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+
+  cd ../build-python3
+  ../${pkgbase}-${pkgver}/configure --prefix=/usr
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package_python-dbus-common() {
+  pkgdesc="Common dbus-python files shared between python-dbus and python2-dbus"
+  depends=()
+  conflicts=('dbus-python<1.1.0')
+
+  cd build-python3
+  make DESTDIR="${pkgdir}" install-data
+  rm -r "${pkgdir}"/usr/lib/python*
+}
+
+package_python-dbus() {
+  depends+=('python-dbus-common' 'python')
+  pkgdesc="Python bindings for DBUS"
+
+  cd build-python3
+  make DESTDIR="${pkgdir}" install
+
+  rm -rf "${pkgdir}/usr/share"
+  rm -r "${pkgdir}/usr/include"
+  rm -r "${pkgdir}/usr/lib/pkgconfig"
+}
+
+package_python2-dbus() {
+  depends+=('python-dbus-common' 'python2')
+  pkgdesc="Python2 bindings for DBUS"
+  replaces=('dbus-python')
+  conflicts=('dbus-python')
+  provides=("dbus-python=$pkgver")
+
+  cd build-python2
+  make DESTDIR="${pkgdir}" install
+
+  rm -rf "${pkgdir}/usr/share"
+  rm -r "${pkgdir}/usr/include"
+  rm -r "${pkgdir}/usr/lib/pkgconfig"
+}



More information about the arch-commits mailing list