name=dbus-glib
version=0.80
-release=1
-source=(http://dbus.freedesktop.org/releases/$name/$name-$version.tar.gz)
+release=2
+source=(http://dbus.freedesktop.org/releases/$name/$name-$version.tar.gz \
+ dbus-glib-bindings.h)
build() {
cd $name-$version
make distclean
- unset CC CFLAGS CXX CXXFLAGS AR RANLIB DBUS_LIBS DBUS_CFLAGS DBUS_GLIB_LIBS \
-DBUS_GLIB_CFLAGS DBUS_GLIB_THREADS_LIBS DBUS_GLIB_THREADS_CFLAGS
-
- ./configure --prefix=/usr \
- --disable-static \
- --with-xml=expat
- make
-
- cd tools
- ../dbus/dbus-binding-tool --mode=glib-client --prefix=dbus_bus --output=dbus-glib-bindings.h dbus-bus-introspect.xml
- cp dbus-glib-bindings.h $PKG/usr/include/dbus-1.0/dbus/
+ install -D -m 0644 $SRC/dbus-glib-bindings.h $PKG/usr/include/dbus-1.0/dbus/dbus-glib-bindings.h
rm -rf $PKG/usr/{etc,libexec,share}
}