Package Details: nyaa-bin 0.9.1-2

Git Clone URL: https://aur.archlinux.org/nyaa-bin.git (read-only, click to copy)
Package Base: nyaa-bin
Description: A tui tool for browsing and downloading torrents
Upstream URL: https://github.com/Beastwick18/nyaa/
Licenses: GPL-3.0-or-later
Conflicts: nyaa
Provides: nyaa
Submitter: Beastwick
Maintainer: Beastwick
Last Packager: Beastwick
Votes: 1
Popularity: 0.82
First Submitted: 2024-03-20 21:00 (UTC)
Last Updated: 2024-07-10 18:27 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

Beastwick commented on 2024-07-10 18:27 (UTC) (edited on 2024-07-10 18:28 (UTC) by Beastwick)

Yep, I forgot to update the checksum for this when the binary changed shortly after publishing v0.9.1 due to some linking problems. I've just updated this to v0.9.1-2 which should fix it.

Thanks for pointing this out :)

shirushido commented on 2024-07-10 16:42 (UTC) (edited on 2024-07-10 16:43 (UTC) by shirushido)

Title: Installation Issue: Validity Check Failed for nyaa-bin-0.9.1

Description: Hello,

I'm encountering an issue while trying to install nyaa-bin version 0.9.1-1 using yay. The installation fails due to a validity check error. Here are the details:

Command Used:

yay -S nyaa-bin

Output:

AUR Explicit (1): nyaa-bin-0.9.1-1
:: PKGBUILD up to date, skipping download: nyaa-bin
1 nyaa-bin                         (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
:: Deleting (1/1): /home/indo/.cache/yay/nyaa-bin
HEAD is now at 1798d4a 0.9.1
Removing nyaa-bin-0.9.1
Removing src/
1 nyaa-bin                         (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
==> Making package: nyaa-bin 0.9.1-1 (Wednesday 10 July 2024 09:10:26 PM)
==> Retrieving sources...
-> Downloading nyaa-bin-0.9.1...
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
100 12.2M  100 12.2M    0     0  1715k      0  0:00:07  0:00:07 --:--:-- 16.1M
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source_x86_64 files with b2sums...
nyaa-bin-0.9.1 ... FAILED
==> ERROR: One or more files did not pass the validity check!
-> error downloading sources: /home/indo/.cache/yay/nyaa-bin
context: exit status 1
:: (1/1) Parsing SRCINFO: nyaa-bin
==> Making package: nyaa-bin 0.9.1-1 (Wednesday 10 July 2024 09:10:34 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found nyaa-bin-0.9.1
==> Validating source_x86_64 files with b2sums...
nyaa-bin-0.9.1 ... FAILED
==> ERROR: One or more files did not pass the validity check!
-> error making: nyaa-bin-exit status 1
-> Failed to install the following packages. Manual intervention is required:
nyaa-bin - exit status 1

Steps Taken:

Retried the installation multiple times.
Cleared the yay cache using yay -Scc and retried the installation.
Manually downloaded the source and attempted to verify the checksum, which did not match the expected value. (I'm new to this so take this with a grain of salt)

Additional Information:

Operating System: Archcraft
yay: v12.3.5 - libalpm v14.0.0
Linux: 6.9.8-arch1-1

Any help or guidance to resolve this issue would be greatly appreciated.

Thank you!

Beastwick commented on 2024-03-28 00:29 (UTC)

Thanks for the resources, I'll look into their implementations :)

m040601 commented on 2024-03-27 17:15 (UTC)

Regarding X11/Wayland clipboards and/or tmux. I have been using these and they implement the "choose the copy command thing". Extremelly usefull things.Maybe you find some inspiration.

Rust: https://github.com/graelo/tmux-copyrat

Go: https://github.com/abhinav/tmux-fastcopy

Beastwick commented on 2024-03-27 14:52 (UTC)

I'll for sure add those files, hopefully by the next release.

As for the clipboard, it currently won't work without X/Wayland running. I'm pretty sure by default it will try to copy to the CLIPBOARD selection, but I could add an option for Linux to select between primary/secondary/clipboard.

Also, that's a good idea to add a command to be run on copy. I'll see about adding something like that to the next release.

m040601 commented on 2024-03-27 02:09 (UTC)

At the moment you only release a simple binary in the release.

In the future When you start releasing a .tar.gz containing the binary and the man page, etc. You might also want to add a CHANGELOG on NEWS and eventually other help/example files. Usefull for the enduser to keep up with the changes (if they are not in the man page).

All done with the "install -Dm644 ... foo bar" you already have there commented.

They should land in something like,

/usr/share/doc/nyaa/CHANGELOG(or NEWS)
/usr/share/doc/nyaa/examples/xyz foo bar
.... ....
/usr/share/licenses/nyaa/LICENSE

m040601 commented on 2024-03-27 01:56 (UTC)

Working great the latest version !!!

This,

 yt, ym, yp | Copy torrent/magnet/post link 

is supposed to copy where ? To the primary/secondary (X11) clipboard ?

What if I am not running a desktop, not even booting X ? Or using X but wants to copy to somewhere else ? Ex, xclip, xsel tool.

For example, a terminal multiplexer like tmux and I want to copy to its copy buffer. Or any other "clipboard" daemon.

Could this be added as an option like some other rust tools do ?

That is to let the user define the copy command itself. Ex,

COPY_COMMAND = " | tmux load-buffer - "

or

COPY_COMMAND = "some clipboard daemon "