summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 54f162b7d47d533fce2136c8c535737d34440a2a (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

%:
	dh ${@} --parallel

override_dh_auto_install:
	dh_auto_install -- DESTDIR=debian/live-build

	# Removing unused files
	rm -f debian/live-build/usr/share/doc/live-build/COPYING

	# live-build-cgi
	mkdir -p debian/live-build-cgi/usr/share/live/build
	mv debian/live-build/usr/share/live/build/cgi debian/live-build-cgi/usr/share/live/build

override_dh_builddeb:
	dh_builddeb -- -Zxz

override_dh_link:
	dh_link

	# workaround dh_link convertion of absolute symlinks to relvative symlinks
	rm -rf debian/live-build/usr/share/live/build/bootloaders
	cp -a share/bootloaders debian/live-build/usr/share/live/build/bootloaders