aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-08-14 20:17:46 +0200
committerRobert Tari <robert@tari.in>2022-08-16 18:10:26 +0200
commite03433ab4c50dd8b4e1bbaac37e5efac8b407aa8 (patch)
tree7d947fa1c827076224c7dcc425009c325a6defa8 /debian/rules
parent8b90bccb7a7acfa01d3c08a00caaea1e4831f408 (diff)
downloadayatana-indicator-printers-e03433ab4c50dd8b4e1bbaac37e5efac8b407aa8.tar.gz
ayatana-indicator-printers-e03433ab4c50dd8b4e1bbaac37e5efac8b407aa8.tar.bz2
ayatana-indicator-printers-e03433ab4c50dd8b4e1bbaac37e5efac8b407aa8.zip
debian/*: Change to using CMake
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules24
1 files changed, 14 insertions, 10 deletions
diff --git a/debian/rules b/debian/rules
index ba2e36f..fac96d4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,28 +1,32 @@
#!/usr/bin/make -f
+export DPKG_GENSYMBOLS_CHECK_LEVEL=4
+
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
-CFLAGS += -Wno-error=deprecated-declarations
-LDFLAGS += -Wl,-z,defs -Wl,--as-needed
+DEB_CMAKE_EXTRA_FLAGS = \
+ -DENABLE_TESTS=ON \
+ -DENABLE_COVERAGE=OFF \
+ $(NULL)
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
%:
- dh $@ --without autoreconf,systemd
+ dh $@ --with systemd
override_dh_auto_configure:
- NOCONFIGURE=1 ./autogen.sh
- dh_auto_configure -- \
- --disable-static
+ dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
override_dh_install:
find debian/ayatana-indicator-printers -name \*.la -delete
find debian/ayatana-indicator-printers -name \*.a -delete
dh_install --fail-missing
-override_dh_auto_clean:
- dh_auto_clean
- # no clue, why they don't disappear during make distclean...
- rm -f config.sub config.guess
+# Hack as it seems it's not possible to easy run that under dbus-test-runner
+override_dh_auto_test:
+ env -u LD_PRELOAD dh_auto_test
+
+get-orig-source:
+ uscan --noconf --force-download --rename --download-current-version --destdir=..