blob: 2cf08872df648ced4cdf29b59d470be16bc6540c (
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
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Yamashita Ren
# Contributor: Fredrick Brennan <admin@8chan.co>
# Contributor: Julien Machiels
pkgname=waifu2x-converter-cpp-cuda-git
pkgver=5.3.4.2.g57520b2
pkgrel=1
pkgdesc="Image Super-Resolution for Anime-Style-Art. (re-implementation in C++ using OpenCV). with CUDA support (GIT Version)"
arch=('x86_64')
url='https://github.com/DeadSix27/waifu2x-converter-cpp'
license=('MIT')
depends=('opencv'
'cuda'
'opencl-icd-loader'
)
makedepends=('cmake'
'git'
'opencl-headers'
)
provides=('waifu2x-converter-cpp')
conflicts=('waifu2x-converter-cpp')
source=('git+https://github.com/DeadSix27/waifu2x-converter-cpp.git'
'https://patch-diff.githubusercontent.com/raw/DeadSix27/waifu2x-converter-cpp/pull/267.diff')
sha256sums=('SKIP'
'e1a630b22ad9520dcfdbe22fe44cf640def66ceaec626b41d3994ce077a539b3'
)
options=('debug')
pkgver() {
cd waifu2x-converter-cpp
echo $(git describe --long --tags | tr - . | tr -d v)
}
prepare() {
patch -d waifu2x-converter-cpp -p1 -i "${srcdir}/267.diff"
}
build() {
cmake -S waifu2x-converter-cpp -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DCUDA_NVCC_FLAGS='-std=c++11' \
-DCUDA_HOST_COMPILER=/opt/cuda/bin/gcc \
-DINSTALL_MODELS=ON \
-DOPENCV_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -Dm644 waifu2x-converter-cpp/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|