1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/usr/bin/make -f
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@
override_dh_installexamples:
dh_installexamples
sed -i '1s|^#!/home/ben/software/install/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
override_dh_auto_install:
dh_auto_install
# example with local paths
$(RM) -v $(TMP)/usr/bin/validjson
rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/bin
|