Skip to content

Commit

Permalink
feat: add dpkg support for dtk6
Browse files Browse the repository at this point in the history
Add deb meta control files for dtk6widget.

Log: add dpkg support for dtk6
  • Loading branch information
asterwyx committed Oct 7, 2023
1 parent 4747425 commit e14b1f3
Show file tree
Hide file tree
Showing 12 changed files with 67 additions and 59 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dtk6widget (6.0.0) UNRELEASED; urgency=medium

* Release 6.0.0

-- Deepin Packages Builder <[email protected]> Fri, 08 Sep 2023 08:41:51 +0800

dtkwidget (5.6.17) unstable; urgency=medium

* Release 5.6.17
Expand Down
94 changes: 56 additions & 38 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,63 +1,81 @@
Source: dtkwidget
Source: dtk6widget
Section: libdevel
Priority: optional
Maintainer: Deepin Packages Builder <[email protected]>
Build-Depends: debhelper-compat (= 12), pkg-config, libudev-dev,
libqt5x11extras5-dev, libxext-dev, qttools5-dev-tools, qttools5-dev,
x11proto-xext-dev, libxcb-util0-dev, libstartup-notification0-dev,
libmtdev-dev, qtbase5-private-dev, libegl1-mesa-dev, libudev-dev,
libfontconfig1-dev, libfreetype-dev, libglib2.0-dev, libxrender-dev,
libdtkcore-dev, libgsettings-qt-dev, libqt5svg5-dev, libxi-dev,
libdtkgui-dev, libcups2-dev, libgtest-dev, libdtkcore5-bin, cmake, doxygen
Maintainer: Deepin Packages Builder <[email protected]>
Build-Depends:
debhelper-compat (= 12),
pkg-config,
libudev-dev,
libxext-dev,
qt6-tools-dev-tools,
qt6-tools-dev,
x11proto-xext-dev,
libxcb-util0-dev,
libstartup-notification0-dev,
libmtdev-dev,
qt6-base-private-dev,
libegl1-mesa-dev,
libudev-dev,
libfontconfig1-dev,
libfreetype-dev,
libglib2.0-dev,
libxrender-dev,
libgsettings-qt-dev,
libqt6svg6-dev,
libxi-dev,
libcups2-dev,
libgtest-dev,
libdtk6core-dev,
libdtk6gui-dev,
libdtkcommon-dev,
cmake,
doxygen
Standards-Version: 3.9.8

Package: libdtkwidget5
Package: libdtk6widget
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libdtkdata,
libqt5widgets5(>= 5.11.3.33) | libqt5widgets5(<= 5.11.3.28)
Depends: ${shlibs:Depends}, ${misc:Depends}, libdtkdata
Multi-Arch: same
Description: Deepin graphical user interface library
DtkWidget is Deepin graphical user interface for deepin desktop development.
Description: deepin graphical user interface library
DtkWidget is deepin graphical user interface for deepin desktop development.
.
This package contains the shared libraries.

Package: libdtkwidget5-bin
Package: libdtk6widget-bin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libdtkwidget5( =${binary:Version}),
libqt5x11extras5-dev, libdtkcore-dev, libqt5svg5-dev
Description: Deepin graphical user interface library utilities
DtkWidget is Deepin graphical user interface for deepin desktop development.
Build-Profiles: <!nobin>
Depends: ${shlibs:Depends}, ${misc:Depends}, libdtk6widget (= ${binary:Version})
Description: deepin graphical user interface library utilities
DtkWidget is deepin graphical user interface for deepin desktop development.
.
This package contains the utilities which are
needed for developing Deepin applications.
needed for developing deepin applications.

Package: libdtkwidget-dev
Package: libdtk6widget-dev
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libdtkwidget5( =${binary:Version}),
libqt5x11extras5-dev, libdtkcore-dev, libqt5svg5-dev,
libdtkgui-dev, libcups2-dev
Description: Deepin graphical user interface library
DtkWidget is Deepin graphical user interface for deepin desktop development.
Depends: ${misc:Depends}, libdtk6widget (= ${binary:Version}),
libdtk6core-dev,
libdtk6gui-dev
Description: deepin graphical user interface library
DtkWidget is deepin graphical user interface for deepin desktop development.
.
This package contains the header files and static libraries which are
needed for developing Deepin applications.
needed for developing deepin applications.

Package: dtkwidget5-examples
Package: dtk6widget-examples
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libdtkwidget5( =${binary:Version}), libdtkdata
Depends: ${shlibs:Depends}, ${misc:Depends}, libdtk6widget (= ${binary:Version}), libdtkdata
Description: dtkwidget-examples is generated by dtkwidget.
DtkWidget is Deepin graphical user interface for deepin desktop development.
DtkWidget is deepin graphical user interface for deepin desktop development.
.
This package contains example application which are
needed for developing Deepin applications.
needed for developing deepin applications.

Package: dtkwidget-doc
Package: libdtk6widget-doc
Build-Profiles: <!nodoc>
Architecture: any
Description: Deepin graphical user interface library (Document)
DtkWidget is Deepin graphical user interface for deepin desktop development.
Description: deepin graphical user interface library (Document)
DtkWidget is deepin graphical user interface for deepin desktop development.
.
This package contains example application which are
needed for developing Deepin applications.
needed for developing deepin applications.
4 changes: 2 additions & 2 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: deepin-tool-kit
Source: https://github.com/linuxdeepin/deepin-tool-kit
Upstream-Name: dtk6widget
Source: https://github.com/linuxdeepin/dtk6widget

Files: *
Copyright: 2017 Deepin Technology Co., Ltd.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ usr/lib/*/*.so
usr/include
usr/lib/*/pkgconfig/*.pc
usr/lib/*/cmake/*/*.cmake
usr/lib/*/qt5/mkspecs/modules/*
usr/lib/*/qt6/mkspecs/modules/*
1 change: 1 addition & 0 deletions debian/libdtk6widget-doc.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/share/qt6/doc/*.qch
File renamed without changes.
1 change: 0 additions & 1 deletion debian/libdtkwidget-doc.install

This file was deleted.

3 changes: 0 additions & 3 deletions debian/libdtkwidget5.install.amd64

This file was deleted.

3 changes: 0 additions & 3 deletions debian/libdtkwidget5.install.i386

This file was deleted.

12 changes: 1 addition & 11 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
export QT_SELECT = qt5

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

Expand All @@ -21,15 +20,6 @@ endif

override_dh_auto_configure:
dh_auto_configure -- -DBUILD_PLUGINS=OFF -DBUILD_DOCS=ON -DDTK_VERSION=$(_PACK_VER)
#override_dh_auto_configure:
# dh_auto_configure -- LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
#override_dh_makeshlibs:
# dh_makeshlibs -V

#ifeq ($(DEB_BUILD_ARCH), sw_64)
#override_dh_makeshlibs:
# dh_makeshlibs -V -- -c0
#endif

override_dh_makeshlibs:
dh_makeshlibs -V "libdtkwidget5 (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2))"
dh_makeshlibs -V "libdtk6widget (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2))"

0 comments on commit e14b1f3

Please sign in to comment.