63 lines
1.6 KiB
Bash
63 lines
1.6 KiB
Bash
# Template file for 'zeitgeist'
|
||
pkgname=zeitgeist
|
||
version=1.0.2
|
||
revision=1
|
||
build_style=gnu-configure
|
||
build_helper="gir"
|
||
configure_args="--enable-fts --enable-datahub $(vopt_enable gir introspection)"
|
||
pycompile_module="zeitgeist"
|
||
hostmakedepends="automake libtool pkg-config gettext-devel
|
||
intltool $(vopt_if vala vala) python-rdflib"
|
||
makedepends="json-glib-devel gtk+3-devel telepathy-glib-devel
|
||
python-gobject-devel dbus-devel sqlite-devel xapian-core-devel raptor"
|
||
depends="python-dbus python-gobject"
|
||
short_desc="Logs the users’ activities and events"
|
||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||
license="LGPL-2.1-or-later"
|
||
homepage="https://launchpad.net/zeitgeist/"
|
||
distfiles="https://launchpad.net/zeitgeist/${version%.*}/${version}/+download/zeitgeist-${version}.tar.xz"
|
||
checksum=d023b5904c7076b2701df915dd29b77e256a86d9e80ecfb92f36c9f26371a8ce
|
||
|
||
# Package build options
|
||
build_options="gir vala"
|
||
|
||
case "$XBPS_TARGET_MACHINE" in
|
||
x86_64-musl) build_options_default+=" gir vala" ;;
|
||
*-musl) ;;
|
||
*) build_options_default+=" gir vala" ;;
|
||
esac
|
||
|
||
pre_configure() {
|
||
NOCONFIGURE=1 autoreconf -fi
|
||
}
|
||
|
||
post_install() {
|
||
rm -rf ${DESTDIR}/usr/doc
|
||
}
|
||
|
||
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
|
||
}
|
||
}
|