blob: ad56391b8cd3b8473bf7fb5eceb1f1276b45463d (
plain)
1 # Description: D-Bus Python bindings
2 # URL: http://freedesktop.org/wiki/Software/DBusBindings
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: dbus-glib
5
6 name=dbus-python3
7 version=1.2.16
8 release=1
9 source=(https://dbus.freedesktop.org/releases/dbus-python/dbus-python-$version.tar.gz)
10
11 build() {
12 cd dbus-python-$version
13 mkdir build && cd build
14 PYTHON=/usr/bin/python3 \
15 ../configure --prefix=/usr
16 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
17 make
18 make DESTDIR=$PKG install
19 rm -fr $PKG/usr/{share,include}
20 mv $PKG/usr/lib/pkgconfig/dbus-python.pc $PKG/usr/lib/pkgconfig/dbus-python3.pc
21 }
|