blob: 63c6f44a363fea70af1ec25c28cc91936513e9c9 (
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
|
# Maintainer: Pierce Thompson <pierce at insprill dot net>
pkgname=anime4kcpp-git
pkgver=v2.5.0.r416.g2578b7b
pkgrel=2
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')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(
"${pkgname%-git}::git+https://github.com/TianZerL/Anime4KCPP.git"
)
sha256sums=(
'SKIP'
)
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
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
}
package() {
cd "${pkgname%-git}"
install -Dm755 "build/bin/ac_cli" "$pkgdir/usr/bin/ac_cli"
install -Dm644 "LICENSE-MIT" -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
install -Dm644 "readme.md" -t "$pkgdir/usr/share/doc/${pkgname%-git}"
}
|