# Template file for 'tracker'
pkgname=tracker
version=0.16.1
revision=1
build_style=gnu-configure
configure_args="--enable-libflac --enable-libvorbis --disable-unit-tests
 --enable-libtiff --disable-static --enable-network-manager"
hostmakedepends="pkg-config intltool gobject-introspection"
makedepends="libpng-devel>=1.6 libgee-devel libsecret-devel upower-devel
 exempi-devel poppler-glib-devel gupnp-dlna-devel libgxps-devel
 libgsf-devel icu-devel>=49 enca-devel libvorbis-devel libflac-devel
 taglib-devel giflib-devel>=5.0 totem-pl-parser-devel
 libexif-devel tiff-devel network-manager-applet-devel sqlite-devel"
short_desc="Personal search tool and storage system"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://live.gnome.org/Tracker"
distfiles="${GNOME_SITE}/$pkgname/0.16/$pkgname-$version.tar.xz"
checksum=fbb94144826b00da0b427dc6f37d2679bd8dfec1dc992e857a47a0b453f0b771
long_desc="
 Tracker trawls through your data and organises it so that it can be retrieved
 extremely quickly later on via simple searches. This organisation puts your
 data into categories so that application like photo managers and music players
 can instantly find relevant content automatically. Tracker enables you to tag
 your data with keywords which can be used to find related information or to
 group and categorise your data further. Tracker lets you extend your data
 with additional metadata."

tracker-devel_package() {
	depends="libglib-devel libtracker-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/share/gir-1.0
		vmove usr/share/gtk-doc
		vmove usr/share/vala
		vmove usr/lib/pkgconfig
	}
}

libtracker_package() {
	short_desc+=" - shared libraries"
	pkg_install() {
		vmove "usr/lib/*.so*"
		vmove "usr/lib/tracker-0.16/*.so*"
		vmove usr/lib/girepository-1.0
	}
}

tracker_package() {
	pkg_install() {
		vmove all
	}
}
