[Flatpak] Build also Bogofilter, to enable Junk filtering on the client
Fixes https://github.com/flathub/org.gnome.Evolution/issues/10
This commit is contained in:
@ -250,6 +250,21 @@
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"name": "bogofilter",
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"cd ./bogofilter/ && echo \"# Skip for Flatpak build\" > doc/Makefile.am && autoreconf -fi && ./configure --prefix=/app --disable-rpath --with-database=sqlite3 && make && make install"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://sourceforge.net/code-snapshots/git/b/bo/bogofilter/git.git/bogofilter-git-0242a05e541c7a5ec7b6a27c810be7cecb9ae82f.zip",
|
||||
"sha256": "1f9ea52db12bff715c3d955a37abe66547cebf93c90c4f31d7e0aed8ff73afdc"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"name": "evolution",
|
||||
"buildsystem": "cmake-ninja",
|
||||
@ -262,6 +277,7 @@
|
||||
"-DENABLE_PST_IMPORT=OFF",
|
||||
"-DENABLE_TEXT_HIGHLIGHT=OFF",
|
||||
"-DENABLE_YTNEF=OFF",
|
||||
"-DWITH_BOGOFILTER=/app/bin/bogofilter",
|
||||
"-DWITH_GLADE_CATALOG=OFF",
|
||||
"-DWITH_HELP=OFF"
|
||||
],
|
||||
@ -275,7 +291,6 @@
|
||||
"url": "https://gitlab.gnome.org/GNOME/evolution.git",
|
||||
"branch": "master"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "shell",
|
||||
"commands": [
|
||||
@ -289,6 +304,7 @@
|
||||
"if [ \"$1\" = \"--quit\" -o \"$1\" = \"--force-shutdown\" ]; then",
|
||||
" /app/bin/evolution.bin \"$@\"",
|
||||
"else",
|
||||
" export BOGOFILTER_DIR=\"${XDG_DATA_HOME}/bogofilter/\"",
|
||||
" export GIO_USE_NETWORK_MONITOR=base",
|
||||
" gsettings reset org.gnome.evolution-data-server network-monitor-gio-name",
|
||||
"",
|
||||
|
@ -246,6 +246,21 @@
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"name": "bogofilter",
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"cd ./bogofilter/ && echo \"# Skip for Flatpak build\" > doc/Makefile.am && autoreconf -fi && ./configure --prefix=/app --disable-rpath --with-database=sqlite3 && make && make install"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://sourceforge.net/code-snapshots/git/b/bo/bogofilter/git.git/bogofilter-git-0242a05e541c7a5ec7b6a27c810be7cecb9ae82f.zip",
|
||||
"sha256": "1f9ea52db12bff715c3d955a37abe66547cebf93c90c4f31d7e0aed8ff73afdc"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"name": "evolution",
|
||||
"buildsystem": "cmake-ninja",
|
||||
@ -258,6 +273,7 @@
|
||||
"-DENABLE_PST_IMPORT=OFF",
|
||||
"-DENABLE_TEXT_HIGHLIGHT=OFF",
|
||||
"-DENABLE_YTNEF=OFF",
|
||||
"-DWITH_BOGOFILTER=/app/bin/bogofilter",
|
||||
"-DWITH_GLADE_CATALOG=OFF",
|
||||
"-DWITH_HELP=OFF"
|
||||
],
|
||||
@ -271,7 +287,6 @@
|
||||
"url": "https://gitlab.gnome.org/GNOME/evolution.git",
|
||||
"branch": "gnome-3-32"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "shell",
|
||||
"commands": [
|
||||
@ -285,6 +300,7 @@
|
||||
"if [ \"$1\" = \"--quit\" -o \"$1\" = \"--force-shutdown\" ]; then",
|
||||
" /app/bin/evolution.bin \"$@\"",
|
||||
"else",
|
||||
" export BOGOFILTER_DIR=\"${XDG_DATA_HOME}/bogofilter/\"",
|
||||
" export GIO_USE_NETWORK_MONITOR=base",
|
||||
" gsettings reset org.gnome.evolution-data-server network-monitor-gio-name",
|
||||
"",
|
||||
|
Reference in New Issue
Block a user