61 lines
2.3 KiB
Bash
61 lines
2.3 KiB
Bash
# Template file for 'evolution'
|
|
pkgname=evolution
|
|
version=3.32.4
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DENABLE_AUTOAR=OFF -DENABLE_LIBCRYPTUI=OFF -DENABLE_GTKSPELL=OFF
|
|
-DENABLE_TEXT_HIGHLIGHT=OFF -DENABLE_PST_IMPORT=OFF
|
|
-DENABLE_WEATHER=$(vopt_if gir ON OFF)"
|
|
hostmakedepends="gnome-doc-utils gobject-introspection intltool itstool
|
|
pkg-config"
|
|
makedepends="NetworkManager-devel clutter-gtk-devel enchant2-devel
|
|
evolution-data-server-devel gtkhtml-devel libcanberra-devel
|
|
$(vopt_if gir libgweather-devel) libnotify-devel webkit2gtk-devel ytnef-devel
|
|
gnome-desktop-devel"
|
|
depends="gnome-keyring"
|
|
short_desc="Integrated mail, addressbook and calendaring for GNOME"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-or-later, LGPL-3.0-or-later, GPL-2.0-or-later"
|
|
homepage="https://wiki.gnome.org/Apps/Evolution"
|
|
changelog="https://raw.githubusercontent.com/GNOME/evolution/gnome-3-28/NEWS"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=10af2af919bc0b5e7f6acbd1231ad573f6101ff095469613ce485b07c9ab1502
|
|
shlib_provides="libevolution-calendar.so libevolution-util.so libemail-engine.so
|
|
libevolution-mail.so libevolution-shell.so"
|
|
|
|
build_options="gir"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
else
|
|
hostmakedepends+=" glib-devel"
|
|
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
|
|
}
|
|
|
|
evolution-devel_package() {
|
|
depends="webkit2gtk-devel gtk+3-devel libglib-devel evolution-data-server-devel
|
|
gtkhtml-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|