File: rules

package info (click to toggle)
xlunzip 0.4-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 276 kB
  • sloc: ansic: 2,063; sh: 430; makefile: 110
file content (19 lines) | stat: -rwxr-xr-x 562 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

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

%:
	dh ${@}

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

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

	# update-alternatives
	mv debian/xlunzip/usr/bin/xlunzip debian/xlunzip/usr/bin/lzip.xlunzip
	ln -s /usr/bin/lzip.xlunzip debian/xlunzip/usr/bin/xlunzip

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