# Template file for 'gnome-bluetooth'
pkgname=gnome-bluetooth
version=3.0.1
distfiles="${GNOME_SITE}/$pkgname/3.0/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--disable-desktop-update --disable-schemas-compile
--localstatedir=/var --disable-icon-update --disable-scrollkeeper"
short_desc="The GNOME Bluetooth Subsystem"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://live.gnome.org/GnomeBluetooth"
license="GPL, LGPL"
checksum=bce843f7cf690c595678fd554b546bd35175f6e7afa70a1463037a0367b3fd38
long_desc="
 This package contains tools for managing and manipulating Bluetooth devices
 using the GNOME desktop.

 bluetooth-applet provides an agent to ask for PIN and managing pairing with
 devices, together with bluetooth-properties.

 bluetooth-sendto is also included for sending files to Bluetooth devices
 via OBEX."

triggers="gsettings-schemas" 
gtk_iconcache_dirs="/usr/share/icons/hicolor"
subpackages="$pkgname-devel"

Add_dependency run glibc
Add_dependency run dbus-libs
Add_dependency run dbus-glib
Add_dependency run gdk-pixbuf
Add_dependency run libpng
Add_dependency run atk
Add_dependency run glib
Add_dependency run pango
Add_dependency run cairo
Add_dependency run freetype
Add_dependency run fontconfig
Add_dependency run gtk+3
Add_dependency run libunique
Add_dependency run libnotify
Add_dependency run GConf
Add_dependency run gnome-control-center

Add_dependency build pkg-config
Add_dependency build intltool
Add_dependency build gnome-doc-utils
Add_dependency build glib-devel
Add_dependency build dbus-devel
Add_dependency build dbus-glib-devel
Add_dependency build gdk-pixbuf-devel
Add_dependency build libpng-devel
Add_dependency build atk-devel
Add_dependency build pango-devel
Add_dependency build cairo-devel
Add_dependency build freetype-devel
Add_dependency build fontconfig-devel
Add_dependency build libbluetooth-devel
Add_dependency build gtk+3-devel
Add_dependency build libunique-devel
Add_dependency build libnotify-devel
Add_dependency build GConf-devel
Add_dependency build gnome-control-center-devel
Add_dependency build nautilus-sendto-devel

Add_dependency full bluez			">=0"
Add_dependency full gvfs
Add_dependency full obexd-client		">=0"
Add_dependency full hicolor-icon-theme
Add_dependency full desktop-file-utils

post_install()
{
	install -m644 -D ${FILESDIR}/61-gnome-bluetooth-rfkill.rules \
		${DESTDIR}/lib/udev/rules.d//61-gnome-bluetooth-rfkill.rules
	install -d ${DESTDIR}/etc/ld.so.conf.d
	echo "/usr/lib/gnome-bluetooth" > \
		${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
}

post_stow()
{
	msg_normal "Updating ld.so(8) cache for ${pkgname}...\n"
	ldconfig -f /etc/ld.so.conf.d/${pkgname}.conf
}
