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

# source: BLFS 7.5
TARBALL=dbus-glib-0.102.tar.gz
MD5SUM=f76b8558fd575d0106c3a556eaa49184
SRC_URL=http://dbus.freedesktop.org/releases/dbus-glib/$TARBALL
BUNDLE=

SLACKREQ='dbus expat glib'
SLACKDESC='libdbus-glib: libdbus-glib 0.100.2 (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
}


