From 82fd73456db35f36bd13ebd86d456c5079cad4a2 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 26 Sep 2023 03:18:01 -0400 Subject: [PATCH] xbps: patch xbps-src completions for -A --- srcpkgs/xbps/patches/xbps-src-comp.patch | 21 +++++++++++++++++++++ srcpkgs/xbps/template | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xbps/patches/xbps-src-comp.patch diff --git a/srcpkgs/xbps/patches/xbps-src-comp.patch b/srcpkgs/xbps/patches/xbps-src-comp.patch new file mode 100644 index 00000000000..bb0234f3846 --- /dev/null +++ b/srcpkgs/xbps/patches/xbps-src-comp.patch @@ -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) diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index 5b34b331d58..060a70563ae 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -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"