void-packages/srcpkgs/tracker/template
2019-02-25 03:20:32 -03:00

50 lines
1.4 KiB
Bash

# Template file for 'tracker'
pkgname=tracker
version=2.2.0
revision=2
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dfts=true -Dfunctional_tests=false
-Djournal=true -Dman=true -Dnetwork_manager=enabled -Dstemmer=disabled
-Dsystemd_user_services=no"
hostmakedepends="pkg-config glib-devel vala"
makedepends="dbus-devel libglib-devel icu-devel json-glib-devel
libsoup-devel libxml2-devel sqlite-devel NetworkManager-devel
bash-completion"
short_desc="Personal search tool and storage system"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://live.gnome.org/Tracker"
distfiles="${GNOME_SITE}/tracker/${version%.*}/tracker-${version}.tar.xz"
checksum=6da6c4abd2341a5f2748e504590ef719b8c6fcc78f033d11fb22dab79b8f2306
if [ "$CROSS_BUILD" ]; then
configure_args+=" -Dsqlite3_fts5=builtin"
fi
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) ;;
*-musl) broken="gobject-introspection" ;;
esac
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/vala
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libtracker_package() {
shlib_provides="libtracker-common.so libtracker-data.so"
short_desc+=" - shared libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove "usr/lib/tracker-2.0/*.so*"
vmove usr/lib/girepository-1.0
}
}