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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# Maintainer: Alexander Epaneshnikov <alex19ep@archlinux.org>
# Maintainer: schan <mail@schan.cc>
# Contributor: Adrian Sampson <adrian@radbox.org>
# Contributor: Johannes Löthberg <demizide@gmail.com>
pkgname=beets-git
pkgver=2.0.0.r237.g4416b9857
pkgrel=1
pkgdesc="Flexible music library manager and tagger - git version"
arch=('any')
url="https://beets.io/"
license=('MIT')
depends=(
python-confuse
python-jellyfish
python-mediafile
python-munkres
python-musicbrainzngs
python-reflink
python-setuptools
python-six
python-unidecode
python-yaml
python-rich
)
makedepends=(
git
python-sphinx
python-build
python-wheel
python-installer
python-poetry-core
)
checkdepends=(
bash-completion
imagemagick
python-beautifulsoup4
python-discogs-client
python-flask
python-mpd2
python-pytest
python-pytest-cov
python-pytest-flask
python-pylast
python-requests-oauthlib
python-responses
python-xdg
python-librosa
python-msgpack
)
optdepends=(
'bash-completion: Bash completion'
'chromaprint: Chromaprint/Acoustid plugin'
'ffmpeg: Convert, ReplayGain plugins'
'gst-plugins-bad: Chromaprint/Acoustid, BPD, ReplayGain plugins'
'gst-plugins-good: Chromaprint/Acoustid, BPD, ReplayGain plugins'
'gst-plugins-ugly: Chromaprint/Acoustid, BPD, ReplayGain plugins'
'gst-libav: Chromaprint/Acoustid, BPD, ReplayGain plugins'
'gst-python: Chromaprint/Acoustid, BPD, ReplayGain plugins'
'imagemagick: Thumbnails plugin'
'python-beautifulsoup4: Lyrics plugin'
'python-discogs-client: Discogs plugin'
'python-flask: Web plugin'
'python-gobject: ReplayGain plugin'
'python-mpd2: MPDStats plugin'
'python-pyacoustid: Chromaprint/Acoustid plugin'
'python-pylast: LastGenre plugin'
'python-requests: Chromaprint/Acoustid, BPD, FetchArt plugins'
'python-requests-oauthlib: Beatport plugin'
'python-xdg: Thumbnails plugin'
'python-librosa: autobpm plugin'
)
provides=("beets=$pkgver")
conflicts=('beets')
source=('git+https://github.com/beetbox/beets.git')
md5sums=('SKIP')
pkgver() {
cd ${srcdir}/beets
git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd beets
python -m build --no-isolation
pushd docs
make man
popd
}
check() {
cd beets
python -m pytest \
--deselect test/test_ui.py::ConfigTest::test_cli_config_paths_resolve_relative_to_user_dir \
--deselect test/test_ui.py::CompletionTest::test_completion \
--deselect test/test_importer.py::ImportDuplicateAlbumTest::test_merge_duplicate_album
}
package() {
cd beets
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 extra/_beet -t "${pkgdir}"/usr/share/zsh/site-functions/
pushd docs
install -Dm 644 _build/man/beet.1 -t "${pkgdir}"/usr/share/man/man1/
install -Dm 644 _build/man/beetsconfig.5 -t "${pkgdir}"/usr/share/man/man5/
popd
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/beets-git/
}
|