void-packages/srcpkgs/folks/template
Alexander Lobakin e419060c3d folks: explicitly disable building with LTO
Since version 0.12 libfolks is building with LTO (Link Time Optimizations)
by default. This leads to a several problems, e.g. Geary simply crashes
with segfault at startup.
Explicitly disable LTO during build to avoid such malfunction.

Signed-off-by: Alexander Lobakin <alobakin@dlink.ru>
2019-08-09 17:45:40 +02:00

42 lines
1.4 KiB
Bash

# Template file for 'folks'
pkgname=folks
version=0.12.1
revision=2
build_style=meson
configure_args="-Db_lto=false -Dlibsocialweb-backend=false $(vopt_bool vala vala)"
hostmakedepends="pkg-config intltool glib-devel $(vopt_if vala vala)
python $(vopt_if gir gobject-introspection)"
makedepends="readline-devel telepathy-glib-devel zeitgeist-devel
libgee08-devel evolution-data-server-devel tracker-devel"
depends="zeitgeist"
short_desc="GObject Library to aggregate people into metacontacts"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1.0-or-later"
homepage="https://wiki.gnome.org/Projects/Folks"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=3ca9f2d50fdf5a7a3d3f59c49bd54ceaf8d8181938762370e07535f86d36d475
nocross="Needs Vala, which needs evolution-dataserver GIR"
# NOTE: Vala build opt is broken because upstream doesn't package all necessary
# files in the tarballs, .gir files are missing.
build_options="gir vala"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir vala"
fi
folks-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
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
}
}