blob: d02a99798d368f855300cc318b4d2635e6b69304 (
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
|
# Maintainer: Martino Pilia <martino.pilia@gmail.com>
_pkgname=music21
pkgname=python-$_pkgname
pkgver=9.1.0
pkgrel=1
pkgdesc="A toolkit for computer-aided musical analysis"
arch=('any')
url="http://web.mit.edu/music21"
license=('BSD')
depends=(
'python-chardet'
'python-joblib'
'python-more-itertools'
'python-requests'
'python-webcolors'
)
optdepends=(
'lilypond: PDF or PNG output with music21.converter'
'python-jsonpickle: pickle and unpickle objects with music21.freezeThaw'
'python-matplotlib: graphing support'
'python-pillow: high quality output from LilyPond'
'python-pyaudio: allows recording with music21.audioSearch'
'python-pygame: allows realtime MIDI performance with music21.midi'
'python-scipy: faster FFT for music21.audioSearch'
)
makedepends=(
'python-build'
'python-hatchling'
'python-installer'
'python-wheel'
)
source=("https://github.com/cuthbertLab/music21/archive/v${pkgver}.tar.gz")
sha256sums=('a6cc8a5239bccc5ea4849266eb7a1b002130409fbd88779da19801161154eba7')
build() {
cd "$srcdir/$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
install -D -m644 \
"${srcdir}/$_pkgname-$pkgver/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|