void-packages/srcpkgs/tracker/template

61 lines
1.8 KiB
Text

# Template file for 'tracker'
pkgname=tracker
version=0.16.4
revision=2
build_style=gnu-configure
configure_args="--enable-libflac --enable-libvorbis --disable-unit-tests
--enable-libtiff --disable-static --enable-network-manager"
hostmakedepends="pkg-config intltool"
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>=3.10
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=9c2f50839c2b8b352ab9a022597ef985c1900e6286c0c3bcb7a64da39dbb3580
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
tracker-devel_package() {
depends="libglib-devel libtracker>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
vmove usr/share/vala
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libtracker_package() {
short_desc+=" - shared libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove "usr/lib/tracker-0.16/*.so*"
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}