diff --git a/README.md b/README.md index 3ecde39..c748b30 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ if changes should be made for them to work on other architectures. | `python3-bsdiff4` | ✅ | ✅ | ✅ | ❌ | Binary diff and patch using the BSDIFF4-format (python3). | Dependency for amethyst-mod-manager, but can probably be used for other purposes too. | | `mullvadvpn` | ✅ | ✅ | ✅ | ✅ | Mullvad VPN client app (CLI ONLY) | Used the template of [`dkwo`](https://github.com/dkwo) that is currently (since 2025) [`trying to be merged into the official void-packages`](https://github.com/void-linux/void-packages/pull/56005). | | `mullvad-tui` | ✅ | ✅ | ✅ | ✅ | Terminal User Interface for Mullvad VPN | Interesting TUI to be used with mullvadvpn since the official GUI is made with electron | +| `goanime` | ✅ | ✅ | ✅ | ✅ | Terminal software to stream and download anime and movies | It's possible that some features don't properly work in i686 and armv7l/6l. | | `mullvad-tray` | - | - | - | - | Tray Icon and status indicator for MullvadVPN with other functions | Still WIP and testing in my x86_64 machine. Compiled and seems to work almost all the time but more testing and changes to the template may be required. | | `mulltray` | - | - | - | - | Tray Icon and status indicator/change location for MullvadVPN | Still WIP and testing in my x86_64 machine. Compiled and seems to work almost all the time but more testing and changes to the template may be required. | @@ -46,6 +47,7 @@ If a package is not listed it's not even available for any of the archs listed h | `python3-bsdiff4` | ✅ | ✅ | ❌ | Binary diff and patch using the BSDIFF4-format (python3). | Dependency for amethyst-mod-manager, but can probably be used for other purposes too. | | `mullvadvpn` | ✅ | ✅ | ✅ | Mullvad VPN client app (CLI ONLY) | Used the template of [`dkwo`](https://github.com/dkwo) that is currently (since 2025) [`trying to be merged into the official void-packages`](https://github.com/void-linux/void-packages/pull/56005). | | `mullvad-tui` | ✅ | ✅ | ✅ | Terminal User Interface for Mullvad VPN | Interesting TUI to be used with mullvadvpn since the official GUI is made with electron | +| `goanime` | ✅ | ✅ | ✅ | Terminal software to stream and download anime and movies | It's possible that some features don't properly work when using musl in general. | | `mullvad-tray` | - | - | - | Tray Icon and status indicator for MullvadVPN with other functions | Still WIP and testing in my x86_64 machine. Compiled and seems to work almost all the time but more testing and changes to the template may be required. | | `mulltray` | - | - | - | Tray Icon and status indicator/change location for MullvadVPN | Still WIP and testing in my x86_64 machine. Compiled and seems to work almost all the time but more testing and changes to the template may be required. | diff --git a/archs/aarch64-musl/aarch64-musl-repodata b/archs/aarch64-musl/aarch64-musl-repodata index 2666b1f..e9ee9a7 100644 Binary files a/archs/aarch64-musl/aarch64-musl-repodata and b/archs/aarch64-musl/aarch64-musl-repodata differ diff --git a/archs/aarch64-musl/goanime-2.0.4_1.aarch64-musl.xbps b/archs/aarch64-musl/goanime-2.0.4_1.aarch64-musl.xbps new file mode 100644 index 0000000..decf5dc Binary files /dev/null and b/archs/aarch64-musl/goanime-2.0.4_1.aarch64-musl.xbps differ diff --git a/archs/aarch64-musl/goanime-2.0.4_1.aarch64-musl.xbps.sig2 b/archs/aarch64-musl/goanime-2.0.4_1.aarch64-musl.xbps.sig2 new file mode 100644 index 0000000..0f3ba59 Binary files /dev/null and b/archs/aarch64-musl/goanime-2.0.4_1.aarch64-musl.xbps.sig2 differ diff --git a/archs/aarch64/aarch64-repodata b/archs/aarch64/aarch64-repodata index b64adda..f4077b4 100644 Binary files a/archs/aarch64/aarch64-repodata and b/archs/aarch64/aarch64-repodata differ diff --git a/archs/aarch64/goanime-2.0.4_1.aarch64.xbps b/archs/aarch64/goanime-2.0.4_1.aarch64.xbps new file mode 100644 index 0000000..664fbc9 Binary files /dev/null and b/archs/aarch64/goanime-2.0.4_1.aarch64.xbps differ diff --git a/archs/aarch64/goanime-2.0.4_1.aarch64.xbps.sig2 b/archs/aarch64/goanime-2.0.4_1.aarch64.xbps.sig2 new file mode 100644 index 0000000..ea7604c Binary files /dev/null and b/archs/aarch64/goanime-2.0.4_1.aarch64.xbps.sig2 differ diff --git a/archs/armv6l-musl/armv6l-musl-repodata b/archs/armv6l-musl/armv6l-musl-repodata index 94c7a5c..74d7148 100644 Binary files a/archs/armv6l-musl/armv6l-musl-repodata and b/archs/armv6l-musl/armv6l-musl-repodata differ diff --git a/archs/armv6l-musl/goanime-2.0.4_1.armv6l-musl.xbps b/archs/armv6l-musl/goanime-2.0.4_1.armv6l-musl.xbps new file mode 100644 index 0000000..c52df98 Binary files /dev/null and b/archs/armv6l-musl/goanime-2.0.4_1.armv6l-musl.xbps differ diff --git a/archs/armv6l-musl/goanime-2.0.4_1.armv6l-musl.xbps.sig2 b/archs/armv6l-musl/goanime-2.0.4_1.armv6l-musl.xbps.sig2 new file mode 100644 index 0000000..10a5dda Binary files /dev/null and b/archs/armv6l-musl/goanime-2.0.4_1.armv6l-musl.xbps.sig2 differ diff --git a/archs/armv6l/armv6l-repodata b/archs/armv6l/armv6l-repodata index e4e2f58..6df7a3c 100644 Binary files a/archs/armv6l/armv6l-repodata and b/archs/armv6l/armv6l-repodata differ diff --git a/archs/armv6l/goanime-2.0.4_1.armv6l.xbps b/archs/armv6l/goanime-2.0.4_1.armv6l.xbps new file mode 100644 index 0000000..d242aad Binary files /dev/null and b/archs/armv6l/goanime-2.0.4_1.armv6l.xbps differ diff --git a/archs/armv6l/goanime-2.0.4_1.armv6l.xbps.sig2 b/archs/armv6l/goanime-2.0.4_1.armv6l.xbps.sig2 new file mode 100644 index 0000000..5c4c9f0 Binary files /dev/null and b/archs/armv6l/goanime-2.0.4_1.armv6l.xbps.sig2 differ diff --git a/archs/armv7l-musl/armv7l-musl-repodata b/archs/armv7l-musl/armv7l-musl-repodata index 5478143..c7ae295 100644 Binary files a/archs/armv7l-musl/armv7l-musl-repodata and b/archs/armv7l-musl/armv7l-musl-repodata differ diff --git a/archs/armv7l-musl/goanime-2.0.4_1.armv7l-musl.xbps b/archs/armv7l-musl/goanime-2.0.4_1.armv7l-musl.xbps new file mode 100644 index 0000000..45ca7ec Binary files /dev/null and b/archs/armv7l-musl/goanime-2.0.4_1.armv7l-musl.xbps differ diff --git a/archs/armv7l-musl/goanime-2.0.4_1.armv7l-musl.xbps.sig2 b/archs/armv7l-musl/goanime-2.0.4_1.armv7l-musl.xbps.sig2 new file mode 100644 index 0000000..bb79ade Binary files /dev/null and b/archs/armv7l-musl/goanime-2.0.4_1.armv7l-musl.xbps.sig2 differ diff --git a/archs/armv7l/armv7l-repodata b/archs/armv7l/armv7l-repodata index d361073..2695603 100644 Binary files a/archs/armv7l/armv7l-repodata and b/archs/armv7l/armv7l-repodata differ diff --git a/archs/armv7l/goanime-2.0.4_1.armv7l.xbps b/archs/armv7l/goanime-2.0.4_1.armv7l.xbps new file mode 100644 index 0000000..6f80404 Binary files /dev/null and b/archs/armv7l/goanime-2.0.4_1.armv7l.xbps differ diff --git a/archs/armv7l/goanime-2.0.4_1.armv7l.xbps.sig2 b/archs/armv7l/goanime-2.0.4_1.armv7l.xbps.sig2 new file mode 100644 index 0000000..955b7dd Binary files /dev/null and b/archs/armv7l/goanime-2.0.4_1.armv7l.xbps.sig2 differ diff --git a/archs/i686/goanime-2.0.4_1.i686.xbps b/archs/i686/goanime-2.0.4_1.i686.xbps new file mode 100644 index 0000000..e731451 Binary files /dev/null and b/archs/i686/goanime-2.0.4_1.i686.xbps differ diff --git a/archs/i686/goanime-2.0.4_1.i686.xbps.sig2 b/archs/i686/goanime-2.0.4_1.i686.xbps.sig2 new file mode 100644 index 0000000..6471f46 Binary files /dev/null and b/archs/i686/goanime-2.0.4_1.i686.xbps.sig2 differ diff --git a/archs/i686/i686-repodata b/archs/i686/i686-repodata index 0eca153..c7e623c 100644 Binary files a/archs/i686/i686-repodata and b/archs/i686/i686-repodata differ diff --git a/archs/x86_64-musl/goanime-2.0.4_1.x86_64-musl.xbps b/archs/x86_64-musl/goanime-2.0.4_1.x86_64-musl.xbps new file mode 100644 index 0000000..c990472 Binary files /dev/null and b/archs/x86_64-musl/goanime-2.0.4_1.x86_64-musl.xbps differ diff --git a/archs/x86_64-musl/goanime-2.0.4_1.x86_64-musl.xbps.sig2 b/archs/x86_64-musl/goanime-2.0.4_1.x86_64-musl.xbps.sig2 new file mode 100644 index 0000000..38eeddf Binary files /dev/null and b/archs/x86_64-musl/goanime-2.0.4_1.x86_64-musl.xbps.sig2 differ diff --git a/archs/x86_64-musl/x86_64-musl-repodata b/archs/x86_64-musl/x86_64-musl-repodata index ef556b8..9acc7dd 100644 Binary files a/archs/x86_64-musl/x86_64-musl-repodata and b/archs/x86_64-musl/x86_64-musl-repodata differ diff --git a/archs/x86_64/goanime-2.0.4_1.x86_64.xbps b/archs/x86_64/goanime-2.0.4_1.x86_64.xbps new file mode 100644 index 0000000..c7f8143 Binary files /dev/null and b/archs/x86_64/goanime-2.0.4_1.x86_64.xbps differ diff --git a/archs/x86_64/goanime-2.0.4_1.x86_64.xbps.sig2 b/archs/x86_64/goanime-2.0.4_1.x86_64.xbps.sig2 new file mode 100644 index 0000000..3542928 Binary files /dev/null and b/archs/x86_64/goanime-2.0.4_1.x86_64.xbps.sig2 differ diff --git a/archs/x86_64/x86_64-repodata b/archs/x86_64/x86_64-repodata index 591461a..f6fdea9 100644 Binary files a/archs/x86_64/x86_64-repodata and b/archs/x86_64/x86_64-repodata differ diff --git a/srcpkgs/goanime/patches/disable-self-update-main.patch b/srcpkgs/goanime/patches/disable-self-update-main.patch new file mode 100644 index 0000000..d803245 --- /dev/null +++ b/srcpkgs/goanime/patches/disable-self-update-main.patch @@ -0,0 +1,22 @@ +--- a/cmd/goanime/main.go ++++ b/cmd/goanime/main.go +@@ -16,7 +16,6 @@ import ( + "github.com/alvarorichard/Goanime/v2/internal/player" + "github.com/alvarorichard/Goanime/v2/internal/scraper/cfsolver" + "github.com/alvarorichard/Goanime/v2/internal/tui" +- "github.com/alvarorichard/Goanime/v2/internal/updater" + "github.com/alvarorichard/Goanime/v2/internal/util" + "golang.org/x/term" + ) +@@ -49,11 +48,6 @@ func main() { + return + } + +- // Finish housekeeping from a previous --update: remove the backup and +- // staged files only after this binary has started and its digest matches +- // the one recorded by the updater. No marker means nothing to clean up. +- updater.CleanupAfterUpdate() +- + // The sources the user switched on or off in the SOURCES screen. A file + // that cannot be read is reported and ignored: sources keep their defaults. + if err := util.LoadSavedSourcePrefs(); err != nil { diff --git a/srcpkgs/goanime/patches/disable-self-update.patch b/srcpkgs/goanime/patches/disable-self-update.patch new file mode 100644 index 0000000..b37ef8e --- /dev/null +++ b/srcpkgs/goanime/patches/disable-self-update.patch @@ -0,0 +1,97 @@ +--- a/internal/handlers/request_flow_test.go ++++ b/internal/handlers/request_flow_test.go +@@ -1,19 +1,15 @@ + package handlers + + import ( +- "encoding/json" + "errors" + "image" + "image/png" +- "net/http" +- "net/http/httptest" + "os" + "path/filepath" + "runtime" + "testing" + + "github.com/alvarorichard/Goanime/v2/internal/models" +- "github.com/alvarorichard/Goanime/v2/internal/updater" + "github.com/alvarorichard/Goanime/v2/internal/upscaler" + "github.com/alvarorichard/Goanime/v2/internal/util" + "github.com/ktr0731/go-fuzzyfinder" +@@ -326,24 +322,11 @@ func TestHandlePlaybackMode_SymbolPin(t *testing.T) { + + // --- HandleUpdateRequest --- + +-func TestHandleUpdateRequest_DoesNotPanic(t *testing.T) { +- if runtime.GOOS == "windows" { +- // HandleUpdateRequest → updater.CheckAndPromptUpdate may open the huh +- // confirm form when GitHub has a newer release. The form blocks on TTY +- // on Windows CI. Skip there. +- t.Skip("huh form blocks on Windows CI without TTY") +- } +- srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { +- _ = json.NewEncoder(w).Encode(updater.GitHubRelease{TagName: "v0.0.0"}) +- })) +- t.Cleanup(srv.Close) +- // Cannot override updater.releaseAPIURL from outside its package; just +- // ensure the wrapper doesn't panic and either succeeds or returns wrapped +- // error from the underlying network call. ++func TestHandleUpdateRequest_Disabled(t *testing.T) { + err := HandleUpdateRequest() +- if err != nil { +- assert.Contains(t, err.Error(), "update failed") +- } ++ require.Error(t, err) ++ assert.Contains(t, err.Error(), "self-updating is disabled") ++ assert.Contains(t, err.Error(), "package manager") + } + + // --- HandleUpscaleRequest, handleImageUpscale, handleVideoUpscale --- +diff --git a/internal/handlers/update.go b/internal/handlers/update.go +index 6b24f0b..7e52f10 100644 +--- a/internal/handlers/update.go ++++ b/internal/handlers/update.go +@@ -2,18 +2,9 @@ package handlers + + import ( + "fmt" +- +- "github.com/alvarorichard/Goanime/v2/internal/updater" +- "github.com/alvarorichard/Goanime/v2/internal/util" + ) + + // HandleUpdateRequest processes update requests + func HandleUpdateRequest() error { +- // Initialize logger for update process +- util.InitLogger() +- util.Info("Checking for updates...") +- if updateErr := updater.CheckAndPromptUpdate(); updateErr != nil { +- return fmt.Errorf("update failed: %w", updateErr) +- } +- return nil ++ return fmt.Errorf("self-updating is disabled in this package; update GoAnime with your package manager") + } +diff --git a/internal/util/help.go b/internal/util/help.go +index 7961bfb..1b34428 100644 +--- a/internal/util/help.go ++++ b/internal/util/help.go +@@ -107,7 +107,7 @@ func ShowBeautifulHelp() { + addOption(&helpContent, "--perf", "Enable performance profiling - shows timing metrics for all operations.") + addOption(&helpContent, "--help / -h", "Display this beautiful help message with detailed usage information.") + addOption(&helpContent, "--version", "Show version information and build details.") +- addOption(&helpContent, "--update", "Check for updates and update automatically to the latest version.") ++ addOption(&helpContent, "--update", "Self-updating is disabled; use your package manager to update GoAnime.") + addOption(&helpContent, "-d", "Download mode - download specific episodes for offline viewing.") + addOption(&helpContent, "-r", "Range download mode - download multiple episodes (use with -d or -dm).") + addOption(&helpContent, "-a", "Download ALL episodes/seasons. Use with -d (anime) or -dm (TV/series/dorama).") +@@ -168,7 +168,7 @@ func ShowBeautifulHelp() { + addExample(&helpContent, "goanime", "Start interactive mode") + addExample(&helpContent, "goanime \"attack on titan\"", "Search directly for Attack on Titan") + addExample(&helpContent, "goanime --debug \"naruto\"", "Search with debug information") +- addExample(&helpContent, "goanime --update", "Check for updates and update automatically") ++ addExample(&helpContent, "goanime --update", "Show package-manager update guidance") + addExample(&helpContent, "goanime --version", "Show version information") + addExample(&helpContent, "goanime -d \"one piece\" 1", "Download episode 1 of One Piece") + addExample(&helpContent, "goanime -d -r \"naruto\" 1-5", "Download episodes 1-5 of Naruto") diff --git a/srcpkgs/goanime/template b/srcpkgs/goanime/template new file mode 100644 index 0000000..50303dd --- /dev/null +++ b/srcpkgs/goanime/template @@ -0,0 +1,20 @@ +# Template file for 'goanime' +pkgname=goanime +version=2.0.4 +revision=1 +build_style=go +go_import_path="github.com/alvarorichard/Goanime/v2" +go_package="github.com/alvarorichard/Goanime/v2/cmd/goanime" +hostmakedepends="go gcc" +depends="mpv" +short_desc="Terminal application to stream and download anime and movies" +maintainer="Juan Rojas " +license="MIT" +homepage="https://github.com/alvarorichard/GoAnime" +distfiles="https://github.com/alvarorichard/GoAnime/archive/refs/tags/v${version}.tar.gz" +checksum=f4ce3f93bf429144165d338117304829a689eeca8dbfff893e3c9bf8c6b3256b +make_check=no # Tests take too long (10m+ and panic exit because of timeout so tbh if the package works I won't run the tests bc I don't have time to waste and this is an unofficial repo anyways, I might fix this in the future tho) + +do_install() { + vlicense LICENSE +}