blob: 7aa9be5f137cec21cb6a1def3023711f0dd759b0 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: Kimiblock Moe
# Contributor: Integral
# Contributor: ZhangHua
pkgname=qcm-git
pkgver=1.1.0.r0.ga4ddfc3b
pkgrel=1
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-shadertools'
'hicolor-icon-theme'
'curl'
'openssl'
'qt6-tools'
'qt6-declarative'
'gcc-libs'
'glibc'
'dbus'
'libnghttp2'
'libidn2'
'krb5'
'zstd'
'zlib'
'qt6-wayland'
'libx11'
'libxkbcommon'
'libpng'
'freetype2'
'icu'
'pcre2'
'gnutls'
'graphite'
'lz4'
'libgpg-error'
'ffmpeg'
"fmt")
makedepends=(
'git'
'cmake'
'extra-cmake-modules'
'ninja')
provides=("qcm")
source=("git+https://github.com/hypengw/Qcm.git")
sha256sums=('SKIP')
conflicts=("qcm")
function pkgver(){
cd Qcm
git describe --long --tags --abbrev=8 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
function prepare() {
cd "${srcdir}/Qcm"
git submodule update --init --recursive
}
function build(){
cd "${srcdir}/Qcm"
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release
cmake --build build
}
function package(){
cd "${srcdir}/Qcm"
DESTDIR="${pkgdir}" cmake --install build
mv "${pkgdir}/usr/local"/* "${pkgdir}/usr"
# mkdir -p "${pkgdir}/usr/share/Qcm/"
# cp -r "${srcdir}/Qcm/build/qml_modules" "${pkgdir}/usr/share/Qcm/"
# sed -i 's|Exec=Qcm|Exec=env QML_IMPORT_PATH=/usr/share/Qcm/qml_modules Qcm|g' \
# "${pkgdir}/usr/share/applications"/*.desktop
}
|