opt/zsh/_pkgmk

30 lines
2.3 KiB
Plaintext

#compdef pkgmk
_arguments -s \
'(-i --install)'{-i,--install}'[build and install package]' \
'(-u --upgrade)'{-u,--upgrade}'[build and install package (as upgrade)]' \
'(-r --recursive)'{-r,--recursive}'[search for and build packages recursively]' \
'(-d --download)'{-d,--download}'[download missing source file(s)]' \
'(-do --download-only)'{-do,--download-only}'[do not build, only download missing source file(s)]' \
'(-eo --extract-only)'{-eo,--extract-only}'[do not build, only extract source file(s)]' \
'(-utd --up-to-date)'{-utd,--up-to-date}'[do not build, only check if package is up to date]' \
'(-uf --update-footprint)'{-uf,--update-footprint}'[update footprint using result from last build]' \
'(-if --ignore-footprint)'{-if,--ignore-footprint}'[build package without checking footprint]' \
'(-in --ignore-new)'{-in,--ignore-new}'[build package, ignore new files in a footprint missmatch]' \
'(-um --update-md5sum)'{-um,--update-md5sum}'[update md5sum]' \
'(-im --ignore-md5sum)'{-im,--ignore-md5sum}'[build package without checking md5sum]' \
'(-cm --check-md5sum)'{-cm,--check-md5sum}'[do not build, only check md5sum]' \
'(-us --update-signature)'{-us,--update-signature}'[update signature including sha256 checksums]' \
'(-cs --check-signature)'{-cs,--check-signature}'[check the validity of the port files]' \
'(-is --ignore-signature)'{-is,--ignore-signature}'[build package without checking the signature]' \
'(-rs --refresh-signature)'{-rs,--refresh-signature}'[create new signature and keep existing sha256 checksums]' \
'(-sk --secret-key)'{-sk,--secret-key}'[use <file> to sign the port]:secret-key:' \
'(-pk --public-key)'{-pk,--public-key}'[check the port signature using public-key <file>]:public-key:' \
'(-ns --no-strip)'{-ns,--no-strip}'[do not strip executable binaries or libraries]' \
'(-f --force)'{-f,--force}'[build package even if it appears to be up to date]' \
'(-c --clean)'{-c,--clean}'[remove package and downloaded files]' \
'(-kw --keep-work)'{-kw,--keep-work}'[keep temporary working directory]' \
'(-cf --config-file)'{-cf,--config-file}'[use alternative configuration file]:config-file:_files' \
'(-v --version)'{-v,--version}'[print version and exit]' \
'(-h --help)'{-h,--help}'[print help and exit]'