From 78fd911aec192257b0c5a2a03d8500ff2b4abde2 Mon Sep 17 00:00:00 2001 From: Piraty Date: Tue, 25 Feb 2020 15:17:32 +0100 Subject: [PATCH] scrotty: needs gettext, texinfo (makeinfo) install fish completion to vendor_completions.d --- .../patches/fish-completion-vendor.patch | 20 +++++++++++++++++++ srcpkgs/scrotty/template | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/scrotty/patches/fish-completion-vendor.patch diff --git a/srcpkgs/scrotty/patches/fish-completion-vendor.patch b/srcpkgs/scrotty/patches/fish-completion-vendor.patch new file mode 100644 index 00000000000..9d232716184 --- /dev/null +++ b/srcpkgs/scrotty/patches/fish-completion-vendor.patch @@ -0,0 +1,20 @@ +#reason: fish-shell requires 3rd-party completion files to be installed to vendor_completions.d + +--- mk/shell.mk ++++ mk/shell.mk +@@ -189,12 +189,12 @@ + .PHONY: install-fish + install-fish: $(foreach F,$(_AUTO_COMPLETE),bin/$(F).fish-completion) + @$(PRINTF_INFO) '\e[00;01;31mINSTALL\e[34m %s\e[00m\n' "$@" +- $(Q)$(INSTALL_DIR) -- "$(DESTDIR)$(DATADIR)/fish/completions" ++ $(Q)$(INSTALL_DIR) -- "$(DESTDIR)$(DATADIR)/fish/vendor_completions.d" + ifndef __SHELL_COMMAND +- $(Q)$(foreach F,$(_AUTO_COMPLETE),$(INSTALL_DATA) bin/$(F).fish-completion -- "$(DESTDIR)$(DATADIR)/fish/completions/$(F).fish" &&) $(TRUE) ++ $(Q)$(foreach F,$(_AUTO_COMPLETE),$(INSTALL_DATA) bin/$(F).fish-completion -- "$(DESTDIR)$(DATADIR)/fish/vendor_completions.d/$(F).fish" &&) $(TRUE) + endif + ifdef __SHELL_COMMAND +- $(Q)$(INSTALL_DATA) $^ -- "$(DESTDIR)$(DATADIR)/fish/completions/$(COMMAND).fish" ++ $(Q)$(INSTALL_DATA) $^ -- "$(DESTDIR)$(DATADIR)/fish/vendor_completions.d/$(COMMAND).fish" + endif + @$(ECHO_EMPTY) + diff --git a/srcpkgs/scrotty/template b/srcpkgs/scrotty/template index 2756cf5ad75..13b03a1d156 100644 --- a/srcpkgs/scrotty/template +++ b/srcpkgs/scrotty/template @@ -1,9 +1,9 @@ # Template file for 'scrotty' pkgname=scrotty version=2.0 -revision=2 +revision=3 build_style=gnu-configure -hostmakedepends="pkg-config auto-auto-complete" +hostmakedepends="auto-auto-complete gettext pkg-config texinfo" makedepends="libpng-devel" depends="ImageMagick" short_desc="Framebuffer screenshoter"