#!/usr/bin/make -f

%:
	dh $@

# lr2lr is a shell script followed by the xz-compressed executable: unpack
# it, then add a section header table so that dpkg-shlibdeps can read it
override_dh_auto_build:
	tail -n+3 lr2lr | xz -dc > debian/lr2lr.unpacked
	python3 debian/add-section-headers.py debian/lr2lr.unpacked debian/lr2lr
	chmod 755 debian/lr2lr

override_dh_strip:
	dh_strip -Xlr2lr

override_dh_dwz:
	dh_dwz -Xlr2lr
