blob: c082dbbf92a9658ecca638b059cd8785a46b170d (
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
|
# Maintainer: K4YT3X <aur@k4yt3x.com>
pkgname=video2x-qt6-git
pkgver=6.3.1.r9.gd365597
pkgrel=1
pkgdesc="The Qt6 GUI for Video2X"
arch=('x86_64')
url="https://github.com/k4yt3x/video2x-qt6"
license=('ISC')
depends=('video2x' 'qt6-base' 'spdlog')
makedepends=('git' 'cmake' 'clang' 'qt6-tools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
b2sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname%-git}"
cmake -B build -S . -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_COMPILER=clang++ -DVIDEO2X_ENABLE_NATIVE=ON \
-DUSE_EXTERNAL_VIDEO2X=ON
cmake --build build --config Release --parallel
}
package() {
cd "${srcdir}/${pkgname%-git}"
DESTDIR="${pkgdir}" cmake --install build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|