File: rules

package info (click to toggle)
zutils 1.8-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 564 kB
  • sloc: cpp: 3,012; sh: 645; makefile: 210
file content (30 lines) | stat: -rwxr-xr-x 881 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

ifeq ($(origin CXX),default)
CXX := $(DEB_HOST_GNU_TYPE)-g++
endif

%:
	dh ${@}

override_dh_auto_configure:
	LDFLAGS="${LDFLAGS} -static" dh_auto_configure -- --exec-prefix=/ CXX=$(CXX)

override_dh_auto_install:
	dh_auto_install -- DESTDIR=$(CURDIR)/debian/zutils

	# manpage
	mkdir -p debian/zutils/usr/share/man/man1
	help2man --name 'search compressed and uncompressed files' debian/zutils/bin/zegrep > debian/zutils/usr/share/man/man1/zegrep.1
	help2man --name 'search compressed and uncompressed files' debian/zutils/bin/zfgrep > debian/zutils/usr/share/man/man1/zfgrep.1

	# removing unused files
	rm -f debian/zutils/usr/share/info/dir*

override_dh_auto_test:
	# disabled

override_dh_gencontrol:
	dh_gencontrol -- -Vbuilt-using="glibc (= $$(dpkg-query --show --showformat='$${source:Version}' libc-dev-bin))"