fix: 修改打包方式变为cmake打包
Description: 修改打包方式变为cmake打包 Log: 修改打包方式变为cmake打包 Change-Id: I17ea901b63c290f2ebe406f36737f165c419eff2
This commit is contained in:
parent
70290141ed
commit
2b62754b85
2
debian/control
vendored
2
debian/control
vendored
|
@ -2,7 +2,7 @@ Source: deepin-ocr
|
||||||
Section: utils
|
Section: utils
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Deepin Packages Builder <packages@deepin.com>
|
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
|
Standards-Version: 4.1.3
|
||||||
Homepage: http://www.deepin.org
|
Homepage: http://www.deepin.org
|
||||||
|
|
||||||
|
|
9
debian/rules
vendored
9
debian/rules
vendored
|
@ -1,11 +1,14 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
include /usr/share/dpkg/default.mk
|
include /usr/share/dpkg/default.mk
|
||||||
export QT_SELECT=qt5
|
export QT_SELECT=5
|
||||||
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
qmake
|
dh_auto_configure -- \
|
||||||
dh_auto_configure -- VERSION=$(VERSION) LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) DEFINES+="VERSION=$(DEB_VERSION_UPSTREAM)"
|
-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
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,35 @@
|
||||||
TRANSLATIONS += \
|
TRANSLATIONS += \
|
||||||
# $$PWD/translations/deepin-ocr_zh_CN.ts \
|
$$PWD/translations/deepin-ocr_zh_CN.ts \
|
||||||
# $$PWD/translations/deepin-ocr_en_US.ts \
|
$$PWD/translations/deepin-ocr_en_US.ts \
|
||||||
$$PWD/translations/deepin-ocr_zh_HK.ts \
|
$$PWD/translations/deepin-ocr_zh_HK.ts \
|
||||||
$$PWD/translations/deepin-ocr_zh_TW.ts \
|
$$PWD/translations/deepin-ocr_zh_TW.ts \
|
||||||
# $$PWD/translations/deepin-ocr_ar.ts \
|
$$PWD/translations/deepin-ocr_ar.ts \
|
||||||
# $$PWD/translations/deepin-ocr_br.ts \
|
$$PWD/translations/deepin-ocr_br.ts \
|
||||||
# $$PWD/translations/deepin-ocr_ca.ts \
|
$$PWD/translations/deepin-ocr_ca.ts \
|
||||||
# $$PWD/translations/deepin-ocr_cs.ts \
|
$$PWD/translations/deepin-ocr_cs.ts \
|
||||||
# $$PWD/translations/deepin-ocr_da.ts \
|
$$PWD/translations/deepin-ocr_da.ts \
|
||||||
# $$PWD/translations/deepin-ocr_de.ts \
|
$$PWD/translations/deepin-ocr_de.ts \
|
||||||
# $$PWD/translations/deepin-ocr_es.ts \
|
$$PWD/translations/deepin-ocr_es.ts \
|
||||||
# $$PWD/translations/deepin-ocr_fi.ts \
|
$$PWD/translations/deepin-ocr_fi.ts \
|
||||||
# $$PWD/translations/deepin-ocr_fr.ts \
|
$$PWD/translations/deepin-ocr_fr.ts \
|
||||||
# $$PWD/translations/deepin-ocr_gl_ES.ts \
|
$$PWD/translations/deepin-ocr_gl_ES.ts \
|
||||||
# $$PWD/translations/deepin-ocr_hu.ts \
|
$$PWD/translations/deepin-ocr_hu.ts \
|
||||||
# $$PWD/translations/deepin-ocr_it.ts \
|
$$PWD/translations/deepin-ocr_it.ts \
|
||||||
# $$PWD/translations/deepin-ocr_ko.ts \
|
$$PWD/translations/deepin-ocr_ko.ts \
|
||||||
# $$PWD/translations/deepin-ocr_ms.ts \
|
$$PWD/translations/deepin-ocr_ms.ts \
|
||||||
# $$PWD/translations/deepin-ocr_nl.ts \
|
$$PWD/translations/deepin-ocr_nl.ts \
|
||||||
# $$PWD/translations/deepin-ocr_pl.ts \
|
$$PWD/translations/deepin-ocr_pl.ts \
|
||||||
# $$PWD/translations/deepin-ocr_pt.ts \
|
$$PWD/translations/deepin-ocr_pt.ts \
|
||||||
# $$PWD/translations/deepin-ocr_pt_BR.ts \
|
$$PWD/translations/deepin-ocr_pt_BR.ts \
|
||||||
# $$PWD/translations/deepin-ocr_ru.ts \
|
$$PWD/translations/deepin-ocr_ru.ts \
|
||||||
# $$PWD/translations/deepin-ocr_sq.ts \
|
$$PWD/translations/deepin-ocr_sq.ts \
|
||||||
# $$PWD/translations/deepin-ocr_sr.ts \
|
$$PWD/translations/deepin-ocr_sr.ts \
|
||||||
# $$PWD/translations/deepin-ocr_tr.ts \
|
$$PWD/translations/deepin-ocr_tr.ts \
|
||||||
# $$PWD/translations/deepin-ocr_uk.ts \
|
$$PWD/translations/deepin-ocr_uk.ts \
|
||||||
# $$PWD/translations/deepin-ocr_ug.ts \
|
$$PWD/translations/deepin-ocr_ug.ts \
|
||||||
# $$PWD/translations/deepin-ocr_bo.ts
|
$$PWD/translations/deepin-ocr_bo.ts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#DISTFILES += \
|
DISTFILES += \
|
||||||
# $$PWD/translations/deepin-ocr_en_US.ts
|
$$PWD/translations/deepin-ocr_en_US.ts
|
||||||
|
|
Loading…
Reference in New Issue
Block a user