Date: Friday, December 30, 2022 @ 09:03:02
Author: grawlinson
Revision: 1372366
archrelease: copy trunk to community-x86_64
Added:
mididings/repos/community-x86_64/
mididings/repos/community-x86_64/PKGBUILD
(from rev 1372365, mididings/trunk/PKGBUILD)
----------+
PKGBUILD | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 95 insertions(+)
Copied: mididings/repos/community-x86_64/PKGBUILD (from rev 1372365,
mididings/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-12-30 09:03:02 UTC (rev 1372366)
@@ -0,0 +1,95 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Lieven Moors <[email protected]>
+# Contributor: Leonard de Ruijter <[email protected]>
+# Contributor: speps <speps at aur dot archlinux dot org>
+
+pkgbase=mididings
+pkgname=('mididings' 'mididings-docs')
+pkgver=20221230
+pkgrel=1
+pkgdesc='A MIDI router & processor'
+arch=('x86_64')
+url='https://github.com/mididings/mididings'
+license=('GPL2')
+makedepends=(
+ 'git'
+ 'boost'
+ 'boost-libs'
+ 'alsa-lib'
+ 'jack'
+ 'python'
+ 'python-decorator'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+ 'python-sphinx'
+ 'python-sphinxcontrib-fulltoc'
+ 'python-pyinotify'
+ 'python-pyliblo'
+ 'dbus-python'
+)
+checkdepends=('python-pytest')
+_commit='f6955c9c3a0e8c98b2b5c9efbcefbb9bd15603cb'
+source=("$pkgbase::git+https://github.com/mididings/mididings#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgbase"
+
+ # module
+ python -m build --wheel --no-isolation
+
+ # documentation
+ local python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+
+
PYTHONPATH="$(pwd)/build/lib.linux-$CARCH-cpython-$python_version:$PYTHONPATH"
make -C doc
+}
+
+check() {
+ cd "$pkgbase"
+
+ local python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+
+
PYTHONPATH="$(pwd)/build/lib.linux-$CARCH-cpython-$python_version:$PYTHONPATH"
pytest -v
+}
+
+package_mididings() {
+ depends=(
+ 'boost-libs'
+ 'jack'
+ 'alsa-lib'
+ 'python'
+ 'python-decorator'
+ )
+ optdepends=(
+ 'dbus-python: send DBUS messages'
+ 'python-pyinotify: automatically restart when a script changes'
+ 'python-pyliblo: send/recieve OSC messages'
+ 'python-pysmf: read/write standard MIDI files using the process_file()
function'
+ 'python-pyxdg: so mididings knows where to look for config files'
+ 'tk: for livedings GUI'
+ 'mididings-docs: documentation'
+ )
+
+ cd "$pkgbase"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}
+
+package_mididings-docs() {
+ pkgdesc+=' (documentation)'
+
+ cd "$pkgbase"
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgbase" README
+ cp -vr doc/examples "$pkgdir/usr/share/doc/$pkgbase"
+ cp -vr doc/build/html "$pkgdir/usr/share/doc/$pkgbase"
+}