mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 23:19:11 +00:00
e1e8ed864d
Signed-off-by: k4yt3x <i@k4yt3x.com>
29 lines
775 B
Bash
29 lines
775 B
Bash
pkgname=video2x
|
|
pkgver=r958.996b0bf
|
|
pkgrel=1
|
|
pkgdesc="A machine learning-based video super resolution and frame interpolation framework"
|
|
arch=('x86_64')
|
|
url="https://github.com/k4yt3x/video2x"
|
|
license=('AGPL3')
|
|
depends=('ffmpeg' 'ncnn' 'vulkan-driver' 'spdlog' 'boost-libs')
|
|
makedepends=('git' 'cmake' 'clang' 'vulkan-headers' 'openmp' 'boost')
|
|
|
|
pkgver() {
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
git submodule update --init --recursive
|
|
}
|
|
|
|
build() {
|
|
cmake -B build -S .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_CXX_COMPILER=clang++ -DVIDEO2X_ENABLE_X86_64_V3=ON
|
|
cmake --build build --config Release --parallel
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|