#!/usr/bin/perl
use warnings;
use strict;
use Debian::Debhelper::Dh_Lib;

insert_before('dh_gencontrol', 'dh_golang');
insert_after('dh_makeshlibs', 'dh_makegolangshlibs');

# XXX: -u is deprecated, but we cannot use “-- -Zxz” because additional command
# options will be appended (“-O--buildsystem=golang”), resulting in
# “dh_builddeb -- -Zxz -O--buildsystem=golang”, which fails.
add_command_options('dh_builddeb', '-u-Zxz');

1
