65 lines
2.1 KiB
Bash
65 lines
2.1 KiB
Bash
# Template file for 'tracker'
|
|
pkgname=tracker
|
|
version=2.1.5
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--enable-libflac --enable-libvorbis --disable-unit-tests
|
|
--enable-libtiff --disable-static --enable-network-manager
|
|
$(vopt_enable gir introspection) LDFLAGS=
|
|
ac_cv_lib_sqlite3_sqlite3_threadsafe=yes ax_cv_sqlite_threadsafe=yes
|
|
ax_cv_sqlite_auto_extension=yes ax_cv_sqlite_builtin_fts5=yes"
|
|
hostmakedepends="automake gettext-devel glib-devel gobject-introspection
|
|
intltool libtool libxslt pkg-config"
|
|
makedepends="enca-devel exempi-devel giflib-devel gupnp-dlna-devel
|
|
json-glib-devel libexif-devel libflac-devel libgee-devel libgsf-devel
|
|
libgxps-devel libmediaart-devel libseccomp-devel libsecret-devel
|
|
libvorbis-devel libxslt-devel network-manager-applet-devel poppler-glib-devel
|
|
taglib-devel totem-pl-parser-devel upower-devel"
|
|
short_desc="Personal search tool and storage system"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://live.gnome.org/Tracker"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=b234b7573773b904dc3e885ff5ec44e86b035767cde783bc50d65d12cd72861e
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
pre_configure() {
|
|
# Set AM_LDFLAGS in subdir's Makefile.am because adding the
|
|
# option subdir-objects to configure.ac does not work.
|
|
sed -e"/^AM_CPPFLAGS/i AM_LDFLAGS = ${LDFLAGS}" \
|
|
-i src/*/Makefile.am src/*/*/Makefile.am
|
|
autoreconf -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() {
|
|
shlib_provides="libtracker-common.so.0 libtracker-data.so.0 libtracker-extract.so.0"
|
|
short_desc+=" - shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
vmove "usr/lib/tracker-2.0/*.so*"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/lib/girepository-1.0
|
|
fi
|
|
}
|
|
}
|