1#compdef dpkg-cross
2
3local _dpkgcross_arches
4
5_dpkgcross_arches=(/etc/dpkg-cross/cross-config.*(N))
6_dpkgcross_arches=(${${_dpkgcross_arches#*.}:-alpha amd64 common cygwin-i386 gnu hppa i386 linux m32r m68k mips powerpc sh sh3 sh3eb sh4 sh4eb w32})
7
8_arguments \
9  '(-h --help)'{-h,--help}'[show summary of options]' \
10  '(-v --verbose)'{-v,--verbose}'[be more verbose]' \
11  '(-q --quiet)'{-q,--quiet}'[be more quiet]' \
12  '(-a --arch)'{-a,--arch}':architecture:('"$_dpkgcross_arches"')' \
13  '(-i --install)'{-i,--install}'[install packages]' \
14  '(-A --convert-anyway)'{-A,--convert-anyway}'[convert package even if not useful]' \
15  '(-b --build)'{-b,--build}'[just build but do not install]' \
16  '(-r --remove)'{-r,--remove}'[remove packages]' \
17  '(-s --status)'{-s,--status}'[print status of named packages]' \
18  '(-l --list)'{-l,--list}'[print short status of named packages or patterns]' \
19  '(-L --list-files)'{-L,--list-files}'[list files belonging to named packages]' \
20  '(-u --update)'{-u,--update}'[update current cross-inst]' \
21  '(-Q --query)'{-Q,--query}'[print available update packages]' \
22  '*:package or path or pattern:_files'
23