diff options
author | Christopher Arndt | 2020-06-08 21:16:13 +0200 |
---|---|---|
committer | Christopher Arndt | 2020-06-08 21:16:13 +0200 |
commit | 77cd12c22e18d73b6cfff716d037f18bb0d7ffbb (patch) | |
tree | dfeef33d6398da1d1a2c698cee33e2ce14b87466 | |
download | aur-77cd12c22e18d73b6cfff716d037f18bb0d7ffbb.tar.gz |
Add new package 'dxconvert'
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 37 |
3 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..61f74fdd39d2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = dxconvert + pkgdesc = A file conversion and manipulation toolkit for Yamaha FM synth patches + pkgver = 3.0.5 + pkgrel = 1 + url = http://dxconvert.martintarenskeen.nl/ + arch = any + license = GPL3 + depends = python + optdepends = castools: convert Cassette Interface data (DX100/27/21, DX9, TX81Z) + optdepends = python-rtmidi: MIDI input/output + optdepends = zbar: convert patches from QR codes to SysEx + source = http://home.kpn.nl/m.tarenskeen/download/sysex/DXconvert/DXconvert-3.0.5.zip + sha256sums = cad4af8cefef74fb991f2fcd0b03485c8a84b5c4c2c8f68067da5aed67975647 + +pkgname = dxconvert + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..79508ef792e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +dxconvert-*.pkg.tar.xz +dxconvert-*.pkg.tar.zst +DXconvert-*.zip +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b2666c0a33ce --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de> + +_name=DXconvert +pkgname=dxconvert +pkgver=3.0.5 +pkgrel=1 +pkgdesc="A file conversion and manipulation toolkit for Yamaha FM synth patches" +arch=('any') +url="http://dxconvert.martintarenskeen.nl/" +license=('GPL3') +depends=('python') +optdepends=('castools: convert Cassette Interface data (DX100/27/21, DX9, TX81Z)' + 'python-rtmidi: MIDI input/output' + 'zbar: convert patches from QR codes to SysEx') +source=("http://home.kpn.nl/m.tarenskeen/download/sysex/${_name}/${_name}-${pkgver}.zip") +sha256sums=('cad4af8cefef74fb991f2fcd0b03485c8a84b5c4c2c8f68067da5aed67975647') + + +package() { + cd "${srcdir}/${_name}-${pkgver}" + local py_major_ver="$(python -c 'import sys; print("%i.%i" % sys.version_info[:2])')" + # install Python package + install -Dm644 DXconvert/* -t \ + "${pkgdir}/usr/lib/python${py_major_ver}/site-packages/DXconvert" + # install scripts + for py in *.py; do + install -Dm755 "$py" "${pkgdir}/usr/bin/${py%.py}" + done + install -Dm755 midi_help.pyw "${pkgdir}/usr/bin/dxconvert-midi-help" + for tool in Tools/*.py; do + bn="${tool##*/}" + install -Dm755 "$tool" "${pkgdir}/usr/bin/dxconvert-${bn%.py}" + done + # Install documentation + install -Dm644 CHANGES.txt FORMATS.txt README*.txt Tools/README-Tools.txt \ + -t "${pkgdir}/usr/share/doc/${pkgname}" +} |