2019-07-29 17:18:12 +08:00
|
|
|
#!/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)
|
|
|
|
|
|
|
|
|
|
VERSION = $(DEB_VERSION_UPSTREAM)
|
|
|
|
|
_PACK_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$1}')
|
2022-08-17 15:02:42 +08:00
|
|
|
_BUILD_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$2}' | sed 's/[^0-9]//g' | awk '{print int($$1)}')
|
2019-07-29 17:18:12 +08:00
|
|
|
ifeq ($(_BUILD_VER),)
|
|
|
|
|
CONFIG_VERSION = $(_PACK_VER)
|
|
|
|
|
else
|
|
|
|
|
CONFIG_VERSION = $(_PACK_VER).$(_BUILD_VER)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
%:
|
2022-12-27 16:24:41 +08:00
|
|
|
dh $@
|
2019-07-29 17:18:12 +08:00
|
|
|
|
|
|
|
|
override_dh_auto_configure:
|
2023-06-12 15:15:46 +08:00
|
|
|
dh_auto_configure -- -DBUILD_TESTING=OFF -DBUILD_DOCS=ON -DDTK_VERSION=$(_PACK_VER)
|
2020-11-18 16:15:48 +08:00
|
|
|
#override_dh_auto_test:
|
|
|
|
|
# echo "skip auto test"
|
2019-07-29 17:18:12 +08:00
|
|
|
|
2020-11-20 17:14:22 +08:00
|
|
|
override_dh_makeshlibs:
|
|
|
|
|
dh_makeshlibs -V "libdtkgui5 (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2))"
|