2024-12-23 00:00:00 +00:00
|
|
|
pkgname=video2x-git
|
2024-12-23 00:00:00 +00:00
|
|
|
pkgver=6.0.0
|
2024-10-08 02:29:00 +00:00
|
|
|
pkgrel=1
|
2024-12-22 10:53:09 +00:00
|
|
|
pkgdesc="A machine learning-based video super resolution and frame interpolation framework"
|
2024-10-08 02:29:00 +00:00
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/k4yt3x/video2x"
|
2024-12-23 00:00:00 +00:00
|
|
|
license=('AGPL-3.0-only')
|
2024-11-13 00:00:00 +00:00
|
|
|
depends=('ffmpeg' 'ncnn' 'vulkan-driver' 'spdlog' 'boost-libs')
|
2024-12-22 10:53:09 +00:00
|
|
|
makedepends=('git' 'cmake' 'clang' 'vulkan-headers' 'openmp' 'boost')
|
2024-10-08 02:29:00 +00:00
|
|
|
|
|
|
|
pkgver() {
|
2024-12-23 00:00:00 +00:00
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
|
2024-10-08 02:29:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
2024-12-23 00:00:00 +00:00
|
|
|
git rm ../third_party/{ncnn,spdlog,boost}
|
2024-10-08 02:29:00 +00:00
|
|
|
git submodule update --init --recursive
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-12-22 10:53:09 +00:00
|
|
|
cmake -B build -S .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_CXX_COMPILER=clang++ -DVIDEO2X_ENABLE_X86_64_V3=ON
|
2024-10-08 02:29:00 +00:00
|
|
|
cmake --build build --config Release --parallel
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
}
|
|
|
|
|