1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
binaries := $(shell dh_listpackages)
%:
dh $@ --buildsystem=meson
override_dh_autoreconf:
configure_options =
ifneq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
configure_options += -Ddocbook_docs=disabled
else
configure_options += -Ddocbook_docs=enabled
endif
ifneq ($(filter libflatpak-doc,$(binaries)),)
configure_options += -Dgtkdoc=enabled
else
configure_options += -Dgtkdoc=disabled
endif
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS))$(filter %-tests,$(binaries)),nocheck)
configure_options += -Dinstalled_tests=false -Dtests=false
else
configure_options += -Dinstalled_tests=true -Dtests=true
endif
override_dh_auto_configure:
rm -f app/parse-datetime.c
dh_auto_configure -- \
-Dauto_sideloading=false \
-Ddbus_config_dir=/usr/share/dbus-1/system.d \
-Dgdm_env_file=true \
-Dhttp_backend=curl \
-Dprivileged_group=sudo \
-Drun_media_dir=/media \
-Dselinux_module=disabled \
-Dsystem_bubblewrap=bwrap \
-Dsystem_dbus_proxy=xdg-dbus-proxy \
-Dsystem_helper_user=_flatpak \
-Dsystemdsystemunitdir=/usr/lib/systemd/system \
$(configure_options)
override_dh_install:
install -d debian/tmp/etc/X11/Xsession.d
install -m644 debian/tmp/etc/profile.d/flatpak.sh \
debian/tmp/etc/X11/Xsession.d/20flatpak
dh_install
# debhelper >= 13.4 makes all of /usr/libexec executable, which is not
# quite right for installed-tests
override_dh_fixperms:
dh_fixperms -Xusr/libexec/installed-tests
ifneq ($(filter %-tests,$(binaries)),)
chmod --changes u=rw,og=r debian/*-tests/usr/libexec/installed-tests/*/*.so
chmod --recursive --changes a+rX,u+w,og-w debian/*-tests/usr/libexec/installed-tests
endif
override_dh_installsystemd:
dh_installsystemd --no-start
override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
debian/test.sh
endif
override_dh_auto_test-indep:
@:
|