1#compdef dpkg-buildpackage
2
3_arguments \
4  '-b[binary-only build, no source]' \
5  '-B[binary-only build, no source or arch-indep binaries]' \
6  '-S[source-only build, no binaries]' \
7  '-s-:source generation:((i\:default a\:force\ inclusion\ of\ original\ source d\:force\ exclusion\ of\ original\ source))' \
8  '-a-:architecture:(alpha amd64 arm hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sparc)' \
9  '-v-:version:' \
10  '-C-:changes description:_files' \
11  '-m-:maintainer address:_email_addresses' \
12  '-e-:maintainer address:_email_addresses' \
13  '(-d)-D[check build dependencies and conflicts]' \
14  '(-D)-d[do not check build dependencies and conflicts]' \
15  '-W[turn certain errors into warnings]' \
16  '-E[negates previously-set -W]' \
17  '-nc[do not clean source tree]' \
18  '-tc[clean the source tree after build]' \
19  '-r-:gain-root command: _command_names -e' \
20  '-p-:sign command: _command_names -e' \
21  '-k-:key ID:' \
22  '-us[do not sign source package]' \
23  '-uc[do not sign .changes file]' \
24  '*-i-:ignore regexp:' \
25  '*-I-:ignore filename:_files' \
26  '--admindir=:dpkg database dir:_files -/' \
27  '(-h --help)'{-h,--help}'[show usage message]' \
28  '--version[show version]'
29