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

# BLFS 2013-08-01 modified with Fatdog64 build config
# go with version 0.46 instead of 0.48 because this is the version compatible with gnome-bluetooth-applet
TARBALL=obexd-0.46.tar.xz
MD5SUM=df277cc02770b5ba388c5bbc7bbd6034
SRC_URL=http://www.kernel.org/pub/linux/bluetooth/$TARBALL
BUNDLE=

SLACKREQ='bluez libical libusb'
SLACKDESC='obexd: obexd 0.46 (OBEX DBus client server)  
obexd:  
obexd: The Obexd package contains D-Bus services providing OBEX client and 
obexd: server functionality. OBEX is a communications protocol that 
obexd: facilitates the exchange of binary objects between devices.  
obexd: 
obexd: 
obexd: 
obexd: 
obexd: 
obexd:
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/obexd*
	sed -i 's/#include <string.h>/&\n#include <stdio.h>/' plugins/mas.c &&
	#CONFFLAGS="$CONFFLAGS --enable-usb --enable-pcsuite"
    pkg_build_autoconf &&    
    pkg_build_slackdesc &&
    
    # docs
    mkdir -p /usr/share/doc/obexd-0.46 &&
    cp doc/* /usr/share/doc/obexd-0.46 &&
    cp -a test /usr/share/doc/obexd-0.46/examples
}


