1cc5377d11
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
64 lines
2.4 KiB
Bash
64 lines
2.4 KiB
Bash
# Template file for 'evolution-data-server'
|
|
pkgname=evolution-data-server
|
|
version=3.34.1
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DENABLE_UOA=OFF
|
|
$(vopt_if gir '-DENABLE_INTROSPECTION=ON -DENABLE_VALA_BINDINGS=ON' '-DENABLE_WEATHER=OFF')"
|
|
hostmakedepends="flex glib-devel gperf intltool pkg-config libglib-devel
|
|
$(vopt_if gir 'gobject-introspection')"
|
|
makedepends="boost-devel libcanberra-devel libgdata-devel $(vopt_if gir libgweather-devel)
|
|
libical-devel libsecret-devel mit-krb5-devel $(vopt_if gir 'vala-devel') webkit2gtk-devel"
|
|
depends="$(vopt_if gir libgweather) libsoup-gnome"
|
|
short_desc="Centralized access to appointments and contacts"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://wiki.gnome.org/Apps/Evolution"
|
|
changelog="https://raw.githubusercontent.com/GNOME/evolution-data-server/gnome-3-30/NEWS"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=6ff56ba04cb639e627fe9d6e0ada106a10cadd68a0d53b8ec72b4e285df53abe
|
|
|
|
build_options="gir"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
# cmake perfomrms 2 checks using binary runtime, about iconv and sfrtime.
|
|
# musl (1.1.16) does not support "ISO-2022-JP" encoding (see its roadmap),
|
|
# although evolution-data-server is fine with musl.
|
|
# If crossbuild, cmake let disabling runtime checks via specific directives.
|
|
# test iconv-detect.c also generates iconv-detect.h that is required for build.
|
|
# So completly disable test from iconv-detect.c (cmake.patch file) and
|
|
# use a cmake cache file on crossbuild to disable sfrtime running test.
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" -C disableRuntimeTests.cmake"
|
|
fi
|
|
|
|
pre_configure() {
|
|
mkdir -p build
|
|
cp ${FILESDIR}/iconv-detect.h ${wrksrc}/build/.
|
|
if [ "$CROSS_BUILD" ]; then
|
|
cp ${FILESDIR}/disableRuntimeTests.cmake ${wrksrc}/build/.
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/lib/systemd
|
|
}
|
|
|
|
evolution-data-server-devel_package() {
|
|
depends="sqlite-devel mit-krb5-devel nss-devel nspr-devel libical-devel
|
|
libldap-devel libgdata-devel>=0.15 libsecret-devel libglib-devel
|
|
libsoup-devel gtk+3-devel libxml2-devel gnome-desktop-devel
|
|
${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|