[neon/backports-jammy/accounts-qml6-module/Neon/release] debian: rework rules file

Carlos De Maine null at kde.org
Thu Jan 18 23:37:31 GMT 2024


Git commit 3b1cf59b03cd3d734ba79d9f54ee1f9c52aeaac6 by Carlos De Maine.
Committed on 19/01/2024 at 00:36.
Pushed by carlosdem into branch 'Neon/release'.

rework rules file

M  +13   -10   debian/rules

https://invent.kde.org/neon/backports-jammy/accounts-qml6-module/-/commit/3b1cf59b03cd3d734ba79d9f54ee1f9c52aeaac6

diff --git a/debian/rules b/debian/rules
index 08c37c5..f51b930 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,28 +2,31 @@
 # -*- makefile -*-
 
 # Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
+
+export "QMAKE_CXXFLAGS=$(CFLAGS)"
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
+%:
+	dh $@
+
 override_dh_auto_configure:
-	mkdir -p build && cd build && QT_SELECT=6 qmake6 "QMAKE_CXXFLAGS=$(CFLAGS)" ../source/accounts-qml-module.pro LIBDIR+=/usr/lib/$(DEB_HOST_MULTIARCH) CONFIG+=ubuntu-docs 
+	mkdir -p build6 && cd build6 && QT_SELECT=6 && qmake6 ../source/accounts-qml-module.pro LIBDIR+=/usr/lib/$(DEB_HOST_MULTIARCH)
+#	CONFIG+=ubuntu-docs
 
 override_dh_auto_build:
-	cd build &&  make
+	cd build6 &&  make
 
 #override_dh_install:
 #	rmdir debian/tmp/usr/share/doc/accounts-qml-module/html/images/
 #	dh_install -X .gitignore
 
-override_dh_install:
-	cd /workspace/build && dh_install
+override_dh_auto_install:
+	cd build6 && make install INSTALL_ROOT=$(CURDIR)/debian/tmp
 
 override_dh_installexamples:
 	dh_installexamples --sourcedir=$(CURDIR)
 
-%:
-	dh $@
-
-get-orig-source:
-	uscan --noconf --force-download --rename --download-current-version --destdir=..
+override_dh_install:
+	cd /workspace/build6 && dh_install


More information about the Neon-commits mailing list