File: rules

package info (click to toggle)
xfce4-sntray-plugin 0.4.13.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,472 kB
  • sloc: ansic: 3,470; xml: 139; makefile: 31
file content (41 lines) | stat: -rwxr-xr-x 1,244 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

NULL =

include /usr/share/dpkg/architecture.mk
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -Wl,-O1 -Wl,-z,defs
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

UVER      = $(shell echo $(DEB_VERSION) | cut -d "-" -f1)
DTYPE     =
VER      ?= $(subst $(DTYPE),,$(UVER))

VER_MAJOR = $(shell echo $(VER) | cut -d "." -f1)
VER_MINOR = $(shell echo $(VER) | cut -d "." -f2)
VER_PATCH = $(shell echo $(VER) | cut -d "." -f3)

%:
	dh $@

override_dh_auto_configure:
	mkdir -p "$(CURDIR)/cmake/"
	sed -e 's/@VERSION@/$(VER)/'			\
	    -e 's/@VERSION_MAJOR@/$(VER_MAJOR)/'	\
	    -e 's/@VERSION_MINOR@/$(VER_MINOR)/'	\
	    -e 's/@VERSION_PATCH@/$(VER_PATCH)/'	\
	    $(CURDIR)/cmake/FallbackVersion.cmake.in > $(CURDIR)/cmake/FallbackVersion.cmake
	dh_auto_configure $(DHFLAGS) -- \
	        -DCMAKE_INSTALL_LIBDIR=/usr/lib \
	        $(NULL)

override_dh_install:
	mkdir -p $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/xfce4
	mv $(CURDIR)/debian/tmp/usr/lib/xfce4 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
	rm -Rfv $(CURDIR)/debian/tmp/usr/lib/xfce4
	dh_install

override_dh_missing:
	dh_missing --fail-missing

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..