Created
September 21, 2025 18:15
-
-
Save roadev/c71d7c9112c526586ea2ef4715a797c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From a2a63b399710d07cce49857d30fa24e7aa688627 Mon Sep 17 00:00:00 2001 | |
| From: Juan Roa <[email protected]> | |
| Date: Sun, 21 Sep 2025 13:05:47 -0500 | |
| Subject: [PATCH] fix: Update dependencies and patch build error | |
| - Update dependencies for v3.0.0+ | |
| - Remove obsolete vtk dependency | |
| - Add ffmpeg, qt5-tools, avisynthplus | |
| - Add patch for C++ compilation error in Upscaler.cpp | |
| - Update package() to install GUI and filters | |
| --- | |
| .SRCINFO | 12 +++++++++--- | |
| PKGBUILD | 27 ++++++++++++++++++++------- | |
| 2 files changed, 29 insertions(+), 10 deletions(-) | |
| diff --git a/.SRCINFO b/.SRCINFO | |
| index 144f581..a4cee61 100644 | |
| --- a/.SRCINFO | |
| +++ b/.SRCINFO | |
| @@ -1,15 +1,21 @@ | |
| pkgbase = anime4kcpp-git | |
| pkgdesc = A high performance anime upscaler | |
| - pkgver = v2.5.0.r416.g2578b7b | |
| - pkgrel = 2 | |
| + pkgver = v3.0.0.r4.g92a363a | |
| + pkgrel = 1 | |
| url = https://github.com/TianZerL/Anime4KCPP | |
| arch = x86_64 | |
| license = MIT | |
| + license = GPL3 | |
| makedepends = git | |
| makedepends = cmake | |
| + makedepends = cuda | |
| + makedepends = qt5-tools | |
| depends = opencv | |
| depends = ocl-icd | |
| - depends = vtk | |
| + depends = ffmpeg | |
| + depends = qt5-base | |
| + depends = vapoursynth | |
| + depends = avisynthplus | |
| provides = anime4kcpp | |
| conflicts = anime4kcpp | |
| source = anime4kcpp::git+https://github.com/TianZerL/Anime4KCPP.git | |
| diff --git a/PKGBUILD b/PKGBUILD | |
| index 63c6f44..e9fb043 100644 | |
| --- a/PKGBUILD | |
| +++ b/PKGBUILD | |
| @@ -1,14 +1,14 @@ | |
| # Maintainer: Pierce Thompson <pierce at insprill dot net> | |
| pkgname=anime4kcpp-git | |
| -pkgver=v2.5.0.r416.g2578b7b | |
| -pkgrel=2 | |
| +pkgver=v3.0.0.r4.g92a363a | |
| +pkgrel=1 | |
| pkgdesc="A high performance anime upscaler" | |
| arch=("x86_64") | |
| url="https://github.com/TianZerL/Anime4KCPP" | |
| -license=('MIT') # Update this if we compile the video module since it's GPLv3 | |
| -depends=('opencv' 'ocl-icd' 'vtk') | |
| -makedepends=('git' 'cmake') | |
| +license=('MIT' 'GPL3') # Video module is GPLv3 | |
| +depends=('opencv' 'ocl-icd' 'ffmpeg' 'qt5-base' 'vapoursynth' 'avisynthplus') | |
| +makedepends=('git' 'cmake' 'cuda' 'qt5-tools') | |
| provides=("${pkgname%-git}") | |
| conflicts=("${pkgname%-git}") | |
| source=( | |
| @@ -23,18 +23,31 @@ pkgver() { | |
| git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
| } | |
| +prepare() { | |
| + cd "${pkgname%-git}" | |
| + sed -i 's/gConfig.upscaler.processor.toLocal8Bit()/gConfig.upscaler.processor.toLocal8Bit().constData()/' gui/src/Upscaler.cpp | |
| +} | |
| + | |
| build() { | |
| cd "${pkgname%-git}" | |
| mkdir -p build && cd build | |
| - cmake .. -DAC_ENABLE_LTO=ON -DAC_CORE_ENABLE_FAST_MATH=ON | |
| - cmake --build . --config Release -j8 | |
| + cmake .. -DAC_PRESET_RELEASE=ON | |
| + cmake --build . --config Release -j$(nproc) | |
| } | |
| package() { | |
| cd "${pkgname%-git}" | |
| + # Binaries | |
| install -Dm755 "build/bin/ac_cli" "$pkgdir/usr/bin/ac_cli" | |
| + install -Dm755 "build/bin/ac_gui" "$pkgdir/usr/bin/ac_gui" | |
| + | |
| + # Filters | |
| + install -Dm644 "build/bin/libac_filter_avs_vs.so" "$pkgdir/usr/lib/vapoursynth/libac_filter_avs_vs.so" | |
| + | |
| + # License and Docs | |
| install -Dm644 "LICENSE-MIT" -t "$pkgdir/usr/share/licenses/${pkgname%-git}" | |
| + install -Dm644 "LICENSE-GPLv3" -t "$pkgdir/usr/share/licenses/${pkgname%-git}" | |
| install -Dm644 "readme.md" -t "$pkgdir/usr/share/doc/${pkgname%-git}" | |
| } | |
| -- | |
| 2.51.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment