[neon/neon-packaging/kddockwidgets/Neon/unstable] debian: Upload rules

Carlos De Maine null at kde.org
Tue Dec 20 13:36:42 GMT 2022


Git commit 0d7efe523d4238dca238b5a90eacb0a8ba4d041c by Carlos De Maine.
Committed on 20/12/2022 at 13:36.
Pushed by carlosdem into branch 'Neon/unstable'.

Upload rules

A  +34   -0    debian/rules

https://invent.kde.org/neon/neon-packaging/kddockwidgets/commit/0d7efe523d4238dca238b5a90eacb0a8ba4d041c

diff --git a/debian/rules b/debian/rules
new file mode 100644
index 0000000..6a09ff2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,34 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+#CMAKE_ARGS = -G Ninja -DKDDockWidgets_EXAMPLES=true -D-DKDDockWidgets_DOCS=true -DKDDockWidgets_TESTS=true -DKDDockWidgets_QTQUICK=true -DKDDockWidgets_PYTHON_BINDINGS=true
+CMAKE_ARGS = -G Ninja -DKDDockWidgets_EXAMPLES=true -DKDDockWidgets_DOCS=true -DKDDockWidgets_TESTS=true
+%:
+	dh $@ --with pkgkde_symbolshelper
+
+execute_after_dh_auto_clean:
+	rm -rf
+	rm -rf build-Qt6
+
+override_dh_auto_configure:
+	dh_auto_configure -- $(CMAKE_ARGS)
+	dh_auto_configure --builddirectory=build-Qt6 -- $(CMAKE_ARGS) -DKDDockWidgets_QT6=true
+
+override_dh_auto_build:
+	dh_auto_build
+	dh_auto_build --builddirectory=build-Qt6
+
+override_dh_auto_install:
+	dh_auto_install
+	dh_auto_install --builddirectory=build-Qt6
+
+execute_after_dh_install-indep:
+	#rm debian/qcoro-doc/usr/share/doc/qcoro-doc/docs/changelog.md
+	#rm -r debian/qcoro-doc/usr/share/doc/qcoro-doc/docs/about
+	#rm -r debian/qcoro-doc/usr/share/doc/qcoro-doc/docs/overrides
+
+override_dh_auto_test:
+	dh_auto_test --no-parallel
+	dh_auto_test --no-parallel --builddirectory=build-Qt6


More information about the Neon-commits mailing list