blob: f2162d719432fbeeb8299058fddc085b9c7abd58 (
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
57
58
59
60
61
62
|
# Maintainer: Integral <integral@member.fsf.org>
# Contributor: Kimiblock Zhou <pn3535 at icloud dot com>
pkgname=qcm-git
_pkgname=${pkgname%-git}
pkgver=1.2.0_qsql.r97.gcbccf4e
pkgrel=2
pkgdesc="Qt client for netease cloud music"
arch=('x86_64')
url="https://github.com/hypengw/Qcm"
license=('GPL-2.0-or-later')
depends=(
'qt6-base'
'qt6-quick3d'
'qt6-grpc'
'hicolor-icon-theme'
'curl'
'openssl'
'dbus'
'ffmpeg'
'fmt'
'cubeb-git'
'kdsingleapplication'
'qcmbackend-git'
)
makedepends=(
'git'
'clang'
'cmake'
'ninja'
'asio'
'pegtl'
'nlohmann-json'
'ctre'
'tl-expected'
'vulkan-headers')
optdepends=('qcm-ncm-plugin-git: Netease Cloud Music plugin')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
git -C Qcm describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//'
}
build() {
export CXXFLAGS+=" -fno-builtin" # Temporary fix for clang 19
cmake -B build \
-S Qcm \
-G Ninja \
-D CMAKE_BUILD_TYPE=None \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_CXX_COMPILER=clang++ # Require clang 19+ to build
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|