diff --git a/files/fix_fish_completions_dir.patch b/files/fix_fish_completions_dir.patch new file mode 100644 --- /dev/null +++ b/files/fix_fish_completions_dir.patch @@ -0,0 +1,41 @@ +From ff80e9973554d0c2d3e26a45c20b85cdd79b4b70 Mon Sep 17 00:00:00 2001 +From: Norbert Preining +Date: Tue, 11 Aug 2020 19:31:07 +0900 +Subject: [PATCH] Fix installation of fish, enable autoconf configure argument + (#1016) + +* Fix installation of fish, enable autoconf configure argument +--- + configure.ac | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index bbf3b5d..546dcfc 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -228,7 +228,7 @@ dnl + dnl Completion support + dnl First determine whether completions are requested, pass that to Makefile + AC_ARG_ENABLE([completions], +- AS_HELP_STRING([--enable-completions], [Install shell completions for bash and zsh])) ++ AS_HELP_STRING([--enable-completions], [Install shell completions for bash, zsh, and fish])) + + AS_IF([test "x$enable_completions" = "xyes"], [enable_completions=yes], [enable_completions=no]) + +@@ -258,6 +258,16 @@ AS_IF([test "x$enable_completions" = "xyes"],[ + with_zsh_completion_dir="/usr/local/share/zsh/site-functions" + ]) + AC_SUBST([ZSH_COMPLETION_DIR], $with_zsh_completion_dir) ++ ++ AC_ARG_WITH([fish-completion-dir], ++ [AS_HELP_STRING([--with-fish-completion-dir=DIR], [Directory for fish completion files])],, ++ [with_fish_completion_dir=auto]) ++ AS_IF([test "x$with_fish_completion_dir" = "xyes" -o "x$with_fish_completion_dir" = "xauto"], ++ [ ++ with_fish_completion_dir="/usr/local/share/fish/completions" ++ ]) ++ AC_SUBST([FISH_COMPLETION_DIR], $with_fish_completion_dir) ++ + ]) + + dnl diff --git a/package.yml b/package.yml --- a/package.yml +++ b/package.yml @@ -1,8 +1,8 @@ name : onedrive -version : 2.4.3 -release : 16 +version : 2.4.4 +release : 17 source : - - https://github.com/abraunegg/onedrive/archive/v2.4.3.tar.gz : 4236f436b3658e360164d945a8bc5c9620539c1339ef9182e3d060d2e3b90b9b + - https://github.com/abraunegg/onedrive/archive/v2.4.4.tar.gz : ffdb2bfcc059a976502b075b09a02aa180ebf9ecdb1ce38d20f6fdc8177da5e5 license : GPL-3.0-or-later component : network.clients summary : A complete tool to interact with OneDrive on Linux. @@ -15,8 +15,10 @@ setup : | # Remove unneeded "documentation" files %patch -p1 < $pkgfiles/remove_docs.patch + # Fix fish completion dir config + %patch -p1 < $pkgfiles/fix_fish_completions_dir.patch - %configure + %reconfigure --enable-completions --with-zsh-completion-dir=/usr/share/zsh/site-functions --with-fish-completion-dir=/usr/share/fish/vendor_completions.d build : | %make install : | diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml --- a/pspec_x86_64.xml +++ b/pspec_x86_64.xml @@ -23,18 +23,21 @@ /usr/bin/onedrive /usr/lib/systemd/system/onedrive@.service /usr/lib/systemd/user/onedrive.service + /usr/share/bash-completion/completions/onedrive /usr/share/doc/onedrive/USAGE.md /usr/share/doc/onedrive/config + /usr/share/fish/vendor_completions.d/onedrive.fish /usr/share/man/man1/onedrive.1 + /usr/share/zsh/site-functions/_onedrive - - 2020-06-30 - 2.4.3 + + 2020-08-11 + 2.4.4 Packaging update Thomas Staudinger Staudi.Kaos@gmail.com \ No newline at end of file