summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-06-14 15:28:19 +0200
committerBastien Nocera <hadess@hadess.net>2021-06-14 16:51:10 +0200
commit981313702ea3ad3ec26f34cb01fc4c1c6dfb9406 (patch)
treedf64f966b1748a1abbe6bc6d78f9b787154ffae0
parent0b1361aa3e666885f67ed675075c353e9301edfd (diff)
downloadtotem-981313702ea3ad3ec26f34cb01fc4c1c6dfb9406.tar.gz
build: Remove flatpak dir from the dist'ed tarball
We don't need to the flatpak devel bits in the tarball, and neither do we need the flathub shared-modules, including some Qt patches with complicated licenses.
-rw-r--r--meson.build4
-rwxr-xr-xremove-flatpak-dist.sh9
2 files changed, 13 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 1fdde7650..07ce8c509 100644
--- a/meson.build
+++ b/meson.build
@@ -239,6 +239,10 @@ else
)
endif
+meson.add_dist_script(
+ find_program('remove-flatpak-dist.sh').path()
+)
+
message('Totem was configured with the following options:')
message('** Using the GStreamer-1.0 backend')
diff --git a/remove-flatpak-dist.sh b/remove-flatpak-dist.sh
new file mode 100755
index 000000000..9841b90c2
--- /dev/null
+++ b/remove-flatpak-dist.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if test x"$MESON_DIST_ROOT" != "x" && test -d $MESON_DIST_ROOT; then
+ rm -rf $MESON_DIST_ROOT/flatpak
+ exit $?
+fi
+
+echo MESON_DIST_ROOT must be set
+exit 1