File: rules

package info (click to toggle)
pdlzip 1.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 428 kB
  • sloc: ansic: 4,510; sh: 515; makefile: 118
file content (25 lines) | stat: -rwxr-xr-x 690 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/buildtools.mk

%:
	dh ${@}

override_dh_auto_configure:
	dh_auto_configure -- 'CC=$(CC)'

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

execute_after_dh_auto_install:
	# update-alternatives
	mv debian/pdlzip/usr/bin/pdlzip debian/pdlzip/usr/bin/lzip.pdlzip
	ln -s /usr/bin/lzip.pdlzip debian/pdlzip/usr/bin/pdlzip

	mv debian/pdlzip/usr/share/man/man1/pdlzip.1 debian/pdlzip/usr/share/man/man1/lzip.pdlzip.1
	ln -s /usr/share/man/man1/lzip.pdlzip.1.gz debian/pdlzip/usr/share/man/man1/pdlzip.1.gz

override_dh_auto_test:
	# disabled: incomplete upstream testsuite