Debian Codegraph @

debian/rules

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