#!/usr/bin/make -f # Velox — local test .deb build. Not a release build (no signing, no LTO tuning beyond # what the flags below ask for): see packaging/README.md. # # Explicit cmake flags rather than a CMakePresets.json preset: dh_auto_configure already # sets its own CMAKE_INSTALL_PREFIX / build-dir conventions, which fighting a preset's own # cache variables (build//, etc.) would only complicate. The flags mirror the # `release` preset's intent (RelWithDebInfo, no tests) without inheriting its binaryDir. export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DVELOX_BUILD_TESTS=OFF \ -DVELOX_BUILD_GUI=ON \ -DVELOX_WERROR=OFF # dh_installsystemd (system units) is disabled: velox.service/velox.socket are --user # units, not system ones, so that helper has nothing to do here. dh_installsystemduser is # NOT overridden — it runs normally, finds both units under lib/systemd/user/ in the # install tree, and marks them enabled for each user's *next* systemd --user login (it # cannot reach an already-running session from a root maintainer script at install time; # postinst prints the manual start commands for the current session, matching # packaging/README.md's own instructions). override_dh_installsystemd: