# Template file for 'gnome-bluetooth'
pkgname=gnome-bluetooth
version=3.8.0
revision=1
build_style=gnu-configure
configure_args="--disable-desktop-update --disable-schemas-compile
 --disable-icon-update"
hostmakedepends="which pkg-config intltool itstool gnome-doc-utils gobject-introspection"
makedepends="libXi-devel gtk+3-devel>=3.8 libnotify-devel"
short_desc="The GNOME Bluetooth Subsystem"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://live.gnome.org/GnomeBluetooth"
license="GPL, LGPL"
distfiles="${GNOME_SITE}/$pkgname/3.8/$pkgname-$version.tar.xz"
checksum=70f275922f10ac9f40eb7d57f89193502ee490894b5b721d0f6273432fc97f82
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."

post_install() {
	vinstall ${FILESDIR}/61-gnome-bluetooth-rfkill.rules 644 usr/lib/udev/rules.d
}

gnome-bluetooth-devel_package() {
	depends="glib-devel gtk+3-devel ${sourcepkg}>=${version}"
	short_desc="${short_desc} - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/gir-1.0
		vmove usr/share/gtk-doc
	}
}

gnome-bluetooth_package() {
	depends="dconf gvfs hicolor-icon-theme desktop-file-utils"
	pkg_install() {
		vmove usr
	}
}
