1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
%:
dh $@
# inject version number at beginning of dist.ini file
# this is required because upstream uses Git::NextVersion plugin
override_dh_dzil_build:
perl -p -g -i -E 'say "version = $(DEB_VERSION_UPSTREAM)";' dist.ini
dh_dzil_build
# cleanup the version injected above
override_dh_clean:
perl -n -i -E 'print unless /^version =/;' dist.ini
dh_clean
override_dh_auto_test:
xvfb-run -a dh_auto_test -D .build/debian-build
|