Skip to content

Commit

Permalink
xbps: patch xbps-src completions for -A
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Jan 22, 2024
1 parent 5af505e commit c9c9aee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions srcpkgs/xbps/patches/xbps-src-comp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--- a/data/_xbps_src
+++ b/data/_xbps_src
@@ -26,6 +26,7 @@
}

_arguments -s : \
+ '-A[Host architecture]:architecture:($archs)' \
'-a[Cross compile packages]:architecture:($archs)' \
'-C[Do not remove build directory/autodeps/destdir]' \
'-E[Exit immediately when binary package already exists]' \
@@ -64,9 +65,7 @@
case $words[1] in
build|check|configure|extract|fetch|install|patch|pkg|show|show-avail|show-build-deps|show-hostmakedepends|show-makedepends|show-options|update-check)
_arguments ':package:_xbps_src_all_packages' && ret=0;;
- binary-bootstrap)
- _arguments '::architecture:($archs)' && ret=0;;
- bootstrap|bootstrap-update|chroot|clean-repocache|consistency-check|list|purge-distfiles|remove-autodeps|show-repo-updates|show-sys-updates|update-bulk|update-sys|update-hash-cache)
+ binary-bootstrap|bootstrap|bootstrap-update|chroot|clean-repocache|consistency-check|list|purge-distfiles|remove-autodeps|show-repo-updates|show-sys-updates|update-bulk|update-sys|update-hash-cache)
# no further arguments
ret=0;;
clean)
2 changes: 1 addition & 1 deletion srcpkgs/xbps/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'xbps'
pkgname=xbps
version=0.59.2
revision=1
revision=2
bootstrap=yes
build_style=configure
short_desc="XBPS package system utilities"
Expand Down

0 comments on commit c9c9aee

Please sign in to comment.