summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 5bc14b287bdb86a493084e6e95eef8aa57f26e1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

%:
	dh ${@}

override_dh_auto_configure:
	dh_auto_configure -- CXX='$(CXX) -g' CXXFLAGS='-Wall -Wextra $(CXXFLAGS)'

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

execute_after_dh_auto_install:
	# update-alternatives
	mv debian/lzip/usr/bin/lzip debian/lzip/usr/bin/lzip.lzip
	mv debian/lzip/usr/share/info/lzip.info debian/lzip/usr/share/info/lzip.lzip.info
	mv debian/lzip/usr/share/man/man1/lzip.1 debian/lzip/usr/share/man/man1/lzip.lzip.1

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