void-packages/srcpkgs/zeitgeist/template

61 lines
1.6 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'zeitgeist'
pkgname=zeitgeist
version=1.0.4
revision=1
build_style=gnu-configure
build_helper="gir"
configure_args="--enable-fts --enable-datahub $(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config gettext-devel
python3-rdflib $(vopt_if vala vala)"
makedepends="json-glib-devel gtk+3-devel telepathy-glib-devel
python3-gobject-devel dbus-devel sqlite-devel xapian-core-devel raptor"
depends="python3-dbus python3-gobject"
checkdepends="xvfb-run"
short_desc="Logs the users activities and events"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://launchpad.net/zeitgeist/"
changelog="https://gitlab.freedesktop.org/zeitgeist/zeitgeist/-/raw/main/NEWS"
distfiles="https://launchpad.net/zeitgeist/${version%.*}/${version}/+download/zeitgeist-${version}.tar.xz"
checksum=da0e11160b2a36fe6260acf62b4190e29755fd5df130818157a04883c1eb7237
make_check_pre="xvfb-run"
# Package build options
build_options="gir vala"
build_options_default="gir vala"
pre_configure() {
NOCONFIGURE=1 autoreconf -fi
}
post_install() {
rm -rf ${DESTDIR}/usr/doc
rm -rf ${DESTDIR}/usr/lib/systemd
}
libzeitgeist2_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}
zeitgeist-devel_package() {
short_desc+=" - development files"
depends="libzeitgeist2-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}