summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d915fa1765301456355ae8b5fe4f1c95d796440 (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: Integral <integral@member.fsf.org>
# Contributor: Kimiblock Zhou <pn3535 at icloud dot com>

pkgname=qcm
pkgver=1.2.0_qsql
pkgrel=4
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-declarative'
	'qt6-quick3d'
	'hicolor-icon-theme'
	'curl'
	'openssl'
	'dbus'
	'ffmpeg'
	'fmt'
	'cubeb')
makedepends=(
	'git'
	'cmake'
	'ninja'
	'asio'
	'pegtl'
	'nlohmann-json'
	'ctre'
	'tl-expected'
	'vulkan-headers'
)
source=(
	"git+${url}.git#tag=v${pkgver}"
	"git+https://github.com/effolkronium/random.git"
	"git+https://github.com/hypengw/QmlMaterial.git"
	"git+https://github.com/hypengw/qcm-jellyfin-plugin.git"
	"git+https://github.com/KDAB/KDSingleApplication.git"
)
sha256sums=('4478227be25e33b5dbfdae0704e039dd75d402ff882b830655aa56baa1d2f421'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

prepare() {
	cd Qcm
	git rm third_party/expected

	git submodule init
	git config submodule.third_party/random.url "${srcdir}/random"
	git config submodule.qml_material.url "${srcdir}/QmlMaterial"
	git config submodule.service/jellyfin.url "${srcdir}/qcm-jellyfin-plugin"
	git config submodule.third_party/KDSingleApplication.url "${srcdir}/KDSingleApplication"
	git -c protocol.file.allow=always submodule update
}

build() {
	cmake -B build \
		-S Qcm \
		-G Ninja \
		-D CMAKE_BUILD_TYPE=None \
		-D CMAKE_INSTALL_PREFIX=/usr

	cmake --build build
}

package() {
	DESTDIR="${pkgdir}" cmake --install build
}