mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
multimedia/beets: Add bash/zsh completion.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
4901e007ab
commit
7506adfe7d
2 changed files with 11 additions and 1 deletions
2
multimedia/beets/beet
Normal file
2
multimedia/beets/beet
Normal file
|
@ -0,0 +1,2 @@
|
|||
_load_beet_completion() { eval "$(beet completion)"; }
|
||||
complete -F _load_beet_completion beet
|
|
@ -23,11 +23,13 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20221016 46and2: Added bash/zsh completions.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=beets
|
||||
VERSION=${VERSION:-1.6.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -82,6 +84,12 @@ find -L . \
|
|||
|
||||
python3 setup.py install --root=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/share/bash-completion/completions
|
||||
install -m644 $CWD/beet $PKG/usr/share/bash-completion/completions/
|
||||
|
||||
mkdir -p $PKG/usr/share/zsh/site-functions
|
||||
install -m644 extra/_beet $PKG/usr/share/zsh/site-functions/
|
||||
|
||||
install -D -m644 man/beet.1 $PKG/usr/man/man1/beet.1
|
||||
install -D -m644 man/beetsconfig.5 $PKG/usr/man/man5/beetsconfig.5
|
||||
|
||||
|
|
Loading…
Reference in a new issue