void-packages/srcpkgs/tracker/template
2014-10-03 23:31:26 +02:00

66 lines
2.1 KiB
Text

# Template file for 'tracker'
pkgname=tracker
version=1.0.4
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)
ac_cv_lib_sqlite3_sqlite3_threadsafe=yes ax_cv_sqlite_threadsafe=yes"
hostmakedepends="libtool pkg-config intltool glib-devel"
makedepends="
libpng-devel>=1.6 libgee-devel libsecret-devel upower-devel>=0.99
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.1.0 totem-pl-parser-devel>=3.10
libexif-devel tiff-devel network-manager-applet-devel sqlite-devel
libmediaart-devel libuuid-devel $(vopt_if gir gobject-introspection)"
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/${version%.*}/$pkgname-$version.tar.xz"
checksum=cd9d0ebb2f09b581b3da607aeca96ec770ba1548c98f541dc3428bc945ff9886
make_build_args=-d
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
libtoolize -f
# prevent aclocal from run
touch aclocal.m4 Makefile.in config.h.in
# make it build with giflib-5.1.0
# see http://wiki.linuxfromscratch.org/blfs/ticket/5076#comment:2
sed -i "/DGifCloseFile/s:gifFile:&, NULL:g" src/tracker-extract/tracker-extract-gif.c
}
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-1.0/*.so*"
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}