Simplify debian/rules

- Remove un-needed targets
- Skip dh_auto_test
  The tests succeed only if a valid hyprland cursor theme is installed.
This commit is contained in:
alan (NyxTrail) 2024-03-18 18:48:41 +00:00
parent b735670375
commit c1cb3a2ac7
No known key found for this signature in database
GPG Key ID: 32C5D29762C48D4A
1 changed files with 2 additions and 14 deletions

16
debian/rules vendored
View File

@ -1,5 +1,4 @@
#!/usr/bin/make -f #!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1 #export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
@ -8,16 +7,5 @@
%: %:
dh $@ dh $@
override_dh_auto_configure: override_dh_auto_test:
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build :
override_dh_auto_build:
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
override_dh_auto_clean:
rm -rf build/
dh_clean
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)"