Package Details: peertube-viewer-rs-bin 1.8.5-4

Git Clone URL: https://aur.archlinux.org/peertube-viewer-rs-bin.git (read-only, click to copy)
Package Base: peertube-viewer-rs-bin
Description: Peertube command line viewer inspired by youtube-viewer
Upstream URL: https://peertube-viewer.com
Licenses: AGPL-3.0-or-later
Conflicts: peertube-viewer-rs
Provides: peertube-viewer-rs
Submitter: Sosthene
Maintainer: Sosthene
Last Packager: Sosthene
Votes: 3
Popularity: 0.000010
First Submitted: 2020-05-29 19:45 (UTC)
Last Updated: 2024-04-02 17:55 (UTC)

Latest Comments

m040601 commented on 2024-04-02 17:00 (UTC) (edited on 2024-04-02 17:07 (UTC) by m040601)

Thanks for the work creating this tool and maintaining this PKGBUILD. Very usefull the precompiled "-bin"

arch=('x86_64')

Maybe in the future you could also build for Arm ? aarch64 and armv7h ? Would be very nice to use on the small raspberry pi's etc. If you use Gitlab and automations/CI to build, it is also free.

Thanks in advance.

Here are some errors and corrections that this PKGBUILD needs right now.

pacman -Ql peertube-viewer-rs-bin

peertube-viewer-rs-bin /etc/
peertube-viewer-rs-bin /etc/bash_completion.d/
peertube-viewer-rs-bin /etc/bash_completion.d/peertube-viewer-rs.bash
peertube-viewer-rs-bin /usr/
peertube-viewer-rs-bin /usr/bin/
peertube-viewer-rs-bin /usr/bin/peertube-viewer-rs
peertube-viewer-rs-bin /usr/share/
peertube-viewer-rs-bin /usr/share/licenses/
peertube-viewer-rs-bin /usr/share/licenses/peertube-viewer-rs-bin/
peertube-viewer-rs-bin /usr/share/licenses/peertube-viewer-rs-bin/LICENSE-MIT
peertube-viewer-rs-bin /usr/share/man/
peertube-viewer-rs-bin /usr/share/man/man1/
peertube-viewer-rs-bin /usr/share/man/man1/peertube-viewer-rs.1.gz

ls -l /etc/bash_completion.d/peertube-viewer-rs.bash

-rwxr-xr-x 1 root root 2767 Apr  2 17:40 /etc/bash_completion.d/peertube-viewer-rs.bash

from the PKGBUILD:

22     install -Dm755 completions/peertube-viewer-rs.bash $pkgdir/etc/bash_completion.d/peertube-viewer-rs.bash

This is wrong. Wrong place and wrong file permissions.

First, the right place.

You should not be installing the bash completion to /etc/bash_completion.d.

That is not following the Archlinux standards.

As a result of doing this, be default, the user will not have the bash completion automatically enabled. Unless of course he specifically sources that file from his bashrc just for this peerviewer case.

The correct way is to use "/usr/share/bash-completion/completions/"

So you would do something like this:

  install -Dm644 "xyz..." "${pkgdir}/usr/share/bash-completion/completions/peertube-viewer-rs"

As a result, and because of the Archlinux bash defaults, the user will automatically have completion for peertube enabled.

Second, the right permissions.

You are using 755 and making the file executable. This is wrong. The correct permissions for this kind of file is 644.