blob: 4efd335e82ec7d1fb0cd32ec9e08e645ba0e76a9 (
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
|
# Maintainer: Popolon <popolon @L popolon dot org>
# Contributer: Mark Coolen <mark dot coolen at gmail dot com>
# Contributer: fkxxyz <fkxxyz@163.com>
pkgname='python-mingus'
_module='mingus'
pkgver='0.6.1'
_src_folder="${pkgname}-${pkgver}"
pkgrel=3
pkgdesc="A package for Python used by programmers, musicians, composers and researchers to make and investigate music."
url="https://github.com/bspaans/python-mingus"
depends=('python' 'python-six' 'python-numpy')
optdepends=('lilypond: Score rendering'
'fluidsynth: Play MIDI output')
makedepends=('python-build' 'python-installer' 'python-wheel')
license=('custom:GNU General Public License (GPL)')
arch=('any')
source=("https://github.com/bspaans/python-mingus/archive/${pkgver}.tar.gz")
sha256sums=('05355cd92f4cfe7a25203736482c49fd751cbf9a63201fa0b7a1fb5fd3cd7b10')
prepare() {
cd "${srcdir}/${_src_folder}"
sed -i s/fromstring/frombuffer/ mingus/midi/pyfluidsynth.py
sed -i s/tostring/tobytes/ mingus/midi/pyfluidsynth.py
}
build() {
cd "${srcdir}/${_src_folder}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_src_folder}"
python -m installer --destdir="${pkgdir}" dist/*.whl
cd "$pkgdir//usr"
python_majmin=`python --version | awk '{print $2}'| cut -d . -f 1,2`
mv mingus_examples lib/python${python_majmin}/site-packages/mingus/examples
}
|