fix: package failed

rewrite rules to avoid failed

Log: rules changed
Change-Id: I8d2939ff4f70e5d8e17c761275487690871ad45d
This commit is contained in:
Lu Zhen 2023-09-06 16:22:47 +08:00 committed by deepin-mozart
parent 108a5e42f2
commit 587a4dd8e8
1 changed files with 7 additions and 10 deletions

17
debian/rules vendored
View File

@ -1,18 +1,15 @@
#!/usr/bin/make -f
export QT_SELECT=5
include /usr/share/dpkg/default.mk
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
SYSTYPE = $(shell cat /usr/lib/deepin/desktop-version | grep Type= | awk -F'=' '{print $$2}')
export QT_SELECT=5
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@ --parallel
override_dh_shlibdeps:
dh_shlibdeps -l$(shell pwd)/debian/dde-sharefiles/usr/share/unioncode/sharefiles/lib
override_dh_auto_configure:
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