File: rules

package info (click to toggle)
dde-qt-dbus-factory 5.5.22-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,292 kB
  • sloc: xml: 4,887; cpp: 3,849; python: 45; makefile: 20
file content (33 lines) | stat: -rwxr-xr-x 831 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export QT_SELECT := 5

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/default.mk

VERSION = $(DEB_VERSION_UPSTREAM)
_PACK_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$1}')
_BUILD_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$2}' | sed 's/[^0-9]//g')

ifeq ($(_BUILD_VER),)
	CONFIG_VERSION = $(_PACK_VER)
else
	CONFIG_VERSION = $(_PACK_VER).$(_BUILD_VER)
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) VERSION=$(CONFIG_VERSION)

override_dh_installchangelogs:
	dh_installchangelogs -k CHANGELOG.md

override_dh_makeshlibs:
	dh_makeshlibs -V "libdframeworkdbus2 (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2,3))"