blob: 9750172c4aca02144dc1886fc19f979a2c7113f9 (
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
|
# Maintainer: Lucas Gabriel <g at 11xx dot org>
pkgname=muzaiten-git
pkgver=0.0.0
pkgrel=4
# Preserve upgrade ordering from the timestamp-based VCS package versions.
epoch=1
pkgdesc="Native music player for local libraries, with ratings and scrobbling"
arch=('x86_64')
url="https://github.com/11xx/muzaiten"
license=('Unlicense')
depends=('qt6-base' 'qt6-multimedia' 'taglib' 'chromaprint' 'gstreamer' 'gst-plugins-base-libs' 'glib2' 'zstd' 'python')
makedepends=('git' 'cmake' 'ninja' 'pkgconf')
optdepends=('gst-plugins-good: extra audio decoders and sinks'
'gst-plugin-pipewire: PipeWire audio output'
'gst-plugins-bad: additional codecs and native DSF DSD playback'
'gst-libav: DSD demux and DSD-to-PCM decode'
'mpd: browse an MPD library alongside local sources'
'yt-dlp: enrich YouTube playlist imports with metadata'
'muzaiten-features-clap: optional semantic audio analysis and search provider')
provides=('muzaiten')
conflicts=('muzaiten' 'muzaiten-bin')
source=("$pkgname::git+https://github.com/11xx/muzaiten.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
python tools/version.py
}
build() {
# No default Last.fm credentials are baked into source builds; users add
# their own key in Scrobblers > Last.fm API settings.
cmake -S "$pkgname" -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
-DBUILD_TESTING=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$pkgname/UNLICENSE" "$pkgdir/usr/share/licenses/$pkgname/UNLICENSE"
}
|