blob: 740d0e60363062b2e2e351b074aebed45190e77e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: K4YT3X <aur@k4yt3x.com>
# Maintainer: Antoine Viallon <antoine+aur@lesviallon.fr>
pkgname=video2x
pkgver=6.3.1
pkgrel=2
pkgdesc="A machine learning-based video super resolution and frame interpolation framework"
arch=('x86_64')
url="https://github.com/k4yt3x/video2x"
license=('AGPL-3.0-only')
depends=('ffmpeg' 'ncnn' 'vulkan-driver' 'spdlog' 'boost-libs')
makedepends=('git' 'cmake' 'clang' 'vulkan-headers' 'openmp' 'boost')
provides=("${pkgname}")
conflicts=("${pkgname}")
#source=("git+${url}.git#tag=${pkgver}"
source=("git+${url}.git#commit=517003a"
"git+https://github.com/k4yt3x/libreal-esrgan-ncnn-vulkan.git"
"git+https://github.com/k4yt3x/librealcugan-ncnn-vulkan.git"
"git+https://github.com/k4yt3x/librife-ncnn-vulkan.git")
b2sums=('40d22c212f8fc82fa8f81def724a0dbd66e175b2adb3425df049cf9bdd178ee49384c10b6cc2703b87ac1bacc8f36f5cab0cb6bfd6700072f086e15adcb8c1fe'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd "${srcdir}/${pkgname}"
git rm third_party/{ncnn,spdlog,boost}
git submodule init
git config submodule.third_party/libreal_esrgan_ncnn_vulkan.url "${srcdir}/libreal-esrgan-ncnn-vulkan"
git config submodule.third_party/librealcugan_ncnn_vulkan.url "${srcdir}/librealcugan-ncnn-vulkan"
git config submodule.third_party/librife_ncnn_vulkan.url "${srcdir}/librife-ncnn-vulkan"
git -c protocol.file.allow=always submodule update
}
build() {
cmake -B build -S "${pkgname}" -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_COMPILER=clang++ -DVIDEO2X_ENABLE_NATIVE=ON
cmake --build build --config Release --parallel
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "${pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|