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

# 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='dbus32 expat32 glib32'
SLACKDESC='libdbus-glib32: libdbus-glib32 0.100.2 (Legacy GLib bindings for DBus)  
libdbus-glib32:  
libdbus-glib32: The D-Bus GLib package contains GLib interfaces to the D-Bus 
libdbus-glib32: API. This is has been superseded by GDBus which is part of GLib 
libdbus-glib32: proper, but some older applications still depends on this 
libdbus-glib32: library.  
libdbus-glib32: 
libdbus-glib32: 
libdbus-glib32: 
libdbus-glib32: 
libdbus-glib32:
'

### 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
}

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share usr/libexec usr/man etc
	mkdir -p usr/bin &&
	mv -v tmp/*-32 usr/bin
}

### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static"
    pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# multilib
	mv /usr/bin/dbus-binding-tool /tmp/dbus-binding-tool-32
}


