summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65d4301a009e5e350af035e50a52819a586a0fed (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
# Maintainer: Martin Rys <https://rys.rs/contact> | Toss a coin on https://rys.rs/donate

pkgname=python-midiutil
_reponame=MIDIUtil
pkgver=1.2.1
pkgrel=4
pkgdesc="Library to work with MIDI files"
url="https://pypi.org/project/${_reponame}/"
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-installer' 'python-build')
source=("https://pypi.org/packages/source/${_reponame::1}/${_reponame}/${_reponame}-${pkgver}.tar.gz")
sha256sums=('79fa983bd1efc60785f68a8fe78fa8f45b8d7ec5898bf7cb7f3f7f3336d6a90a')

build() {
	cd "${srcdir}/${_reponame}-${pkgver}"
	python -m build
}

package() {
	cd "${srcdir}/${_reponame}-${pkgver}"
	python -m installer --destdir="${pkgdir}" dist/*.whl
	install -Dm644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/License.txt"
}