summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d72f38a7106873fe1c46e3c073e4d4846f315d6 (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
# Maintainer: Kimiblock Moe
# Contributor: Integral
# Contributor: ZhangHua

pkgname=qcm
pkgver=1.1.2
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#tag=v${pkgver}")
sha256sums=('6d753b055606830d90063c30b684ebd63722f590e62de196b3a31e067e785a02')
conflicts=("qcm")

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
}