Date: Friday, December 30, 2022 @ 09:00:35
  Author: grawlinson
Revision: 1372365

addpkg: mididings 20221230-1

Added:
  mididings/
  mididings/repos/
  mididings/trunk/
  mididings/trunk/PKGBUILD

----------+
 PKGBUILD |   95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)

Added: mididings/trunk/PKGBUILD
===================================================================
--- mididings/trunk/PKGBUILD                            (rev 0)
+++ mididings/trunk/PKGBUILD    2022-12-30 09:00:35 UTC (rev 1372365)
@@ -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"
+}

Reply via email to