deepin-ocr/debian/rules
liuminghang 2b62754b85 fix: 修改打包方式变为cmake打包
Description: 修改打包方式变为cmake打包

Log: 修改打包方式变为cmake打包
Change-Id: I17ea901b63c290f2ebe406f36737f165c419eff2
2021-06-29 14:06:52 +08:00

15 lines
444 B
Makefile
Executable File

#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
export QT_SELECT=5
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@
override_dh_auto_configure:
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