### this file is sourced not run
PKGVER=0.110
PKGBUILD=1
PKGARCH=x86_64

# source: post BLFS 7.9 updated 6-12-2018
TARBALL=dbus-glib-${PKGVER}.tar.gz
MD5SUM=d7cebf1d69445cbd28b4983392145192
SRC_URL=http://dbus.freedesktop.org/releases/dbus-glib/$TARBALL
BUNDLE=

SLACKREQ='dbus expat glib'
SLACKDESC="libdbus-glib: libdbus-glib $PKGVER (Legacy GLib bindings for DBus)  
libdbus-glib:  
libdbus-glib: The D-Bus GLib package contains GLib interfaces to the D-Bus 
libdbus-glib: API. This is has been superseded by GDBus which is part of GLib 
libdbus-glib: proper, but some older applications still depends on this 
libdbus-glib: library.  
libdbus-glib: 
libdbus-glib: 
libdbus-glib: 
libdbus-glib: 
libdbus-glib:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/dbus-glib* &&
	# reverse the patch - otherwise bluetooth-applet will not build
	patch -Rp1 -i $CHROOT_DIR/tmp/pkg/dbus-glib-valid-names.patch
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static"
    pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# multilib
	mv /usr/bin/dbus-binding-tool{,-64} &&
	ln -sf multiarch_wrapper /usr/bin/dbus-binding-tool
}


