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

%:
	dh ${@} --parallel

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

	# alternative handling
	mv debian/lziprecover/usr/bin/lziprecover debian/lziprecover/usr/bin/lzip.lziprecover
	ln -s /usr/bin/lzip.lziprecover debian/lziprecover/usr/bin/lziprecover

	mv debian/lziprecover/usr/share/info/lziprecover.info debian/lziprecover/usr/share/info/lzip.lziprecover.info
	ln -s /usr/share/info/lzip.lziprecover.info.gz debian/lziprecover/usr/share/info/lziprecover.info.gz

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

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

override_dh_strip:
	dh_strip --dbg-package=lziprecover-dbg