fix: 修改打包方式变为cmake打包

Description: 修改打包方式变为cmake打包

Log: 修改打包方式变为cmake打包
Change-Id: I17ea901b63c290f2ebe406f36737f165c419eff2
This commit is contained in:
liuminghang
2021-06-29 14:06:52 +08:00
parent 70290141ed
commit 2b62754b85
3 changed files with 36 additions and 33 deletions

2
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: deepin-ocr
Section: utils
Priority: optional
Maintainer: Deepin Packages Builder <packages@deepin.com>
Build-Depends: debhelper (>= 11), qt5-qmake, qtbase5-dev, pkg-config,libdtkwidget-dev,libleptonica-dev,libtesseract-dev ,qttools5-dev-tools,qttools5-dev
Build-Depends: debhelper (>= 11), cmake, qtbase5-dev, pkg-config,libdtkwidget-dev,libleptonica-dev,libtesseract-dev ,qttools5-dev-tools,qttools5-dev
Standards-Version: 4.1.3
Homepage: http://www.deepin.org

9
debian/rules vendored
View File

@ -1,11 +1,14 @@
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
export QT_SELECT=qt5
export QT_SELECT=5
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@
override_dh_auto_configure:
qmake
dh_auto_configure -- VERSION=$(VERSION) LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) DEFINES+="VERSION=$(DEB_VERSION_UPSTREAM)"
dh_auto_configure -- \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DAPP_VERSION=$(DEB_VERSION_UPSTREAM) -DVERSION=$(DEB_VERSION_UPSTREAM) LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) DH_AUTO_ARGS = --parallel --buildsystem=cmake