blob: d869cc108fdadac82d986755efdb058bcc477419 (
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:
# Contributor: Giuseppe CalĂ <gcala at mailbox dot org>
_pkgname="audiotube"
pkgname="$_pkgname-git"
pkgver=24.05.0.r26.gd9b1902
pkgrel=1
pkgdesc="Client for YouTube Music"
url="https://invent.kde.org/multimedia/audiotube"
license=(
'GPL-2.0-or-later'
'LGPL-2.0-or-later'
)
arch=('x86_64' 'aarch64')
depends=(
futuresql
kcoreaddons
kcrash
ki18n
kirigami-addons
kwindowsystem
purpose
python
python-ytmusicapi
qt6-base
qt6-declarative
qt6-imageformats
qt6-multimedia
qt6-multimedia-gstreamer
qt6-svg
yt-dlp
)
makedepends=(
extra-cmake-modules
pybind11
qcoro-qt6
ninja
git
)
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
local _tag=$(git tag | sort -rV | head -1)
local _version="${_tag#v}"
local _revision=$(git rev-list --count --cherry-pick "$_tag"...HEAD)
local _hash=$(git rev-parse --short=7 HEAD)
printf '%s.r%s.g%s' "${_version:?}" "${_revision:?}" "${_hash:?}"
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DQT_MAJOR_VERSION=6
-DBUILD_TESTING=OFF
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|