blob: 42995d7364c486f1c71138436a4bd35281de3fc4 (
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
|
# Maintainer: Winícius Cota <winicius.cota@gmail.com>
#
# ╔══════════════════════════════════════════════════════════════════╗
# ║ EXPERIMENTAL — NOT FOR GENERAL USE ║
# ║ This is a personal fork of KDE Spectacle that adds desktop ║
# ║ audio capture to screen recordings via PulseAudio + ffmpeg. ║
# ║ ║
# ║ • It tracks a feature branch that may rebase at any time. ║
# ║ • It is unlikely to be merged upstream as-is. ║
# ║ • It will NOT be maintained once KDE ships native audio in ║
# ║ Spectacle (or the branch is abandoned). ║
# ║ • Use the official `spectacle` package unless you specifically ║
# ║ need this feature. ║
# ╚══════════════════════════════════════════════════════════════════╝
pkgname=spectacle-audio-git
pkgver=6.6.80.r1.fd46c0e
pkgrel=1
pkgdesc='KDE Spectacle with desktop-audio capture (experimental fork — not maintained long-term)'
arch=('x86_64')
url='https://invent.kde.org/winicius/spectacle'
license=('LGPL-2.0-or-later')
depends=(
ffmpeg
kglobalacceld
kio
kirigami
kpipewire
kquickimageeditor
kstatusnotifieritem
layer-shell-qt
libpulse
opencv
pipewire
qt6-base
qt6-declarative
qt6-multimedia
)
makedepends=(
cmake
extra-cmake-modules
git
ninja
plasma-wayland-protocols
wayland-protocols
)
provides=('spectacle')
conflicts=('spectacle' 'spectacle-audio')
source=("spectacle::git+https://invent.kde.org/winicius/spectacle.git#branch=feature/audio")
sha256sums=('SKIP')
pkgver() {
cd spectacle
local _base
_base=$(grep -m1 'set(PROJECT_VERSION' CMakeLists.txt | sed 's/[^0-9.]//g')
printf '%s.r%s.%s' "$_base" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
}
build() {
cmake -B build -S spectacle \
-G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DBUILD_TESTING=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|