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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 11:30:43 UTC 2020


    Date: Monday, November 9, 2020 @ 11:30:43
  Author: felixonmars
Revision: 399676

archrelease: copy trunk to staging-x86_64

Added:
  dbus-python/repos/staging-x86_64/
  dbus-python/repos/staging-x86_64/PKGBUILD
    (from rev 399675, dbus-python/trunk/PKGBUILD)

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

Copied: dbus-python/repos/staging-x86_64/PKGBUILD (from rev 399675, dbus-python/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-11-09 11:30:43 UTC (rev 399676)
@@ -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=2
+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