summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00cfc653a1aa2ef89770ed090405db0ab7d3e8f9 (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
# Maintainer: Christopher Arndt <chris at chrisarndt.de>

pkgname='python-mido'
_name='mido'
pkgver=1.2.9
pkgrel=3
pkgdesc="A Python library for working with MIDI messages and ports"
url="https://mido.readthedocs.io/"
depends=('python-rtmidi')
makedepends=('python-setuptools')
optdepends=(
  'portmidi: for PortMidi support'
  'python-pygame: for PortMidi support'
)
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
md5sums=('bec86e55a19f5bfdd5a3546c7cdc418a')


build() {
  cd "${srcdir}/${_name}-${pkgver}"

  python setup.py build
}

package() {
  cd "${srcdir}/${_name}-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

  # license
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}