[neon/backports-jammy/packagekit-qt/Neon/unstable] debian: add qt6 packages

Carlos De Maine null at kde.org
Wed Mar 15 04:29:33 GMT 2023


Git commit 05e766a6edf2e2035d483e44399e88b2f71a9e1c by Carlos De Maine.
Committed on 15/03/2023 at 04:29.
Pushed by carlosdem into branch 'Neon/unstable'.

add qt6 packages

M  +29   -1    debian/control
A  +4    -0    debian/libpackagekitqt6-dev.install
A  +1    -0    debian/libpackagekitqt6.install
M  +16   -5    debian/rules

https://invent.kde.org/neon/backports-jammy/packagekit-qt/commit/05e766a6edf2e2035d483e44399e88b2f71a9e1c

diff --git a/debian/control b/debian/control
index 07281f9..1cacc07 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,8 @@ Build-Depends: cmake (>= 3.2),
                packagekit (>= 1.2.6),
                pkg-config (>= 0.26),
                pkg-kde-tools (>= 0.15.16),
-               qtbase5-dev (>= 5.8)
+               qtbase5-dev (>= 5.8),
+               qt6-base-dev
 Standards-Version: 4.6.1
 Rules-Requires-Root: no
 Homepage: https://www.freedesktop.org/software/PackageKit/
@@ -40,3 +41,30 @@ Description: Library for accessing PackageKit using Qt5 (development files)
  software packages or searching for multimedia codecs and file handlers.
  .
  This package provides the header files for PackageKit-Qt.
+
+Package: libpackagekitqt6
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Suggests: packagekit
+Description: Library for accessing PackageKit using Qt6
+ PackageKit allows performing simple software management tasks over a DBus
+ interface e.g. refreshing the cache, updating, installing and removing
+ software packages or searching for multimedia codecs and file handlers.
+ .
+ This package provides a library to access PackageKit using Qt.
+
+Package: libpackagekitqt6-dev
+Section: libdevel
+Architecture: any
+Depends: libpackagekitqt6 (= ${binary:Version}),
+         qt6-base-dev,
+         ${misc:Depends}
+Description: Library for accessing PackageKit using Qt6 (development files)
+ PackageKit allows performing simple software management tasks over a DBus
+ interface e.g. refreshing the cache, updating, installing and removing
+ software packages or searching for multimedia codecs and file handlers.
+ .
+ This package provides the header files for PackageKit-Qt.
diff --git a/debian/libpackagekitqt6-dev.install b/debian/libpackagekitqt6-dev.install
new file mode 100644
index 0000000..5172ca4
--- /dev/null
+++ b/debian/libpackagekitqt6-dev.install
@@ -0,0 +1,4 @@
+usr/include/packagekitqt6/*
+usr/lib/*/cmake/packagekitqt6
+usr/lib/*/libpackagekitqt6.so
+usr/lib/*/pkgconfig/packagekitqt6.pc
diff --git a/debian/libpackagekitqt6.install b/debian/libpackagekitqt6.install
new file mode 100644
index 0000000..930a81a
--- /dev/null
+++ b/debian/libpackagekitqt6.install
@@ -0,0 +1 @@
+usr/lib/*/libpackagekitqt6.so.*
diff --git a/debian/rules b/debian/rules
index 128ee56..bd836b1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,23 @@
 #!/usr/bin/make -f
 
-QPK_CONFIGURE_ARGS =
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
 
 %:
-	dh $@ --with kf5
+	dh $@ --buildsystem=cmake
+
+execute_after_dh_auto_clean:
+	rm -rf build-Qt6
 
 override_dh_auto_configure:
-	dh_auto_configure -- $(QPK_CONFIGURE_ARGS)
+	QT_SELECT=qt5 dh_auto_configure
+	QT_SELECT=qt6 dh_auto_configure --builddirectory=build-qt6 -- -DBUILD_WITH_QT6=True
+
+override_dh_auto_build:
+	dh_auto_build
+	dh_auto_build --builddirectory=build-qt6
+
+override_dh_auto_install:
+	dh_auto_install
 
-override_dh_missing:
-	dh_missing --fail-missing
+	dh_auto_install --builddirectory=build-qt6


More information about the Neon-commits mailing list