summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrainDamage2019-11-14 18:43:33 +0100
committerBrainDamage2019-11-14 18:49:54 +0100
commit71ec41159a95c9afb2468460ebee340137e93386 (patch)
treeede62caa17c596b8d1837c707362d8e40b906b13
parent5e059f6fa1a43ef5e7b9e30b66fb6436a85183a0 (diff)
downloadaur-mididings-git.tar.gz
pkgrel bump from new python
minor code aesthetic changes
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD44
2 files changed, 25 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 19d4f5416fe..609ae200bcd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mididings-git
pkgdesc = A MIDI router and processor based on Python, supporting ALSA and JACK MIDI (python3 patched)
pkgver = r706.bbec99a
- pkgrel = 1
+ pkgrel = 2
url = http://das.nasophon.de/mididings/
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index e3b9b2a1ffb..40c6873b1d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,47 +3,51 @@
# Contributor: speps <speps at aur dot archlinux dot org>
pkgname_=mididings
-pkgname=$pkgname_-git
+pkgname=${pkgname_}-git
pkgver=r706.bbec99a
-pkgrel=1
+pkgrel=2
pkgdesc="A MIDI router and processor based on Python, supporting ALSA and JACK MIDI (python3 patched)"
arch=('i686' 'x86_64')
url="http://das.nasophon.de/mididings/"
license=('GPL')
depends=('boost-libs' 'python-decorator' 'jack')
makedepends=('boost')
-provides=("$pkgname_")
-conflicts=("$pkgname_")
+provides=("${pkgname_}")
+conflicts=("${pkgname_}")
optdepends=('python-dbus: to send DBUS messages'
'python-pyliblo: to send or receive OSC messages'
'python-pyinotify: to automatically restart when a script changes'
'python-xdg: so mididings knows where to look for config files'
'tk: for the livedings GUI')
-source=("$pkgname::git+https://github.com/dsacre/mididings")
+source=("${pkgname}::git+https://github.com/dsacre/mididings")
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "${srcdir}/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/${pkgname}"
+ # fix integer division
+ gawk -i inplace 'NR==42 { sub("/", "//") }; { print }' mididings/extra/harmonizer.py
+ # async is a reserved keyword in python3
+ gawk -i inplace '{ gsub("async", "asyncFlag") }; { print }' mididings/units/call.py
}
build() {
- cd "$srcdir/$pkgname"
- # fix integer division
- gawk -i inplace 'NR==42 { sub("/", "//") }; { print }' mididings/extra/harmonizer.py
- # async is a reserved keyword in python3
- gawk -i inplace '{ gsub("async", "asyncFlag") }; { print }' mididings/units/call.py
- python setup.py build
+ cd "${srcdir}/${pkgname}"
+ python setup.py build
}
package() {
- cd "$srcdir/$pkgname"
- python setup.py install --prefix=/usr --root="$pkgdir"
+ cd "${srcdir}/${pkgname}"
+ python setup.py install --skip-build --prefix=/usr --root="${pkgdir}"
- # docs
- install -d "$pkgdir/usr/share/doc/$pkgname_/examples"
- install -Dm644 doc/*.* "$pkgdir/usr/share/doc/$pkgname_"
+ # docs
+ install -d "${pkgdir}/usr/share/doc/${pkgname_}/examples"
+ install -Dm644 doc/*.* "${pkgdir}/usr/share/doc/${pkgname_}"
- # examples
- install -Dm644 doc/examples/* "$pkgdir/usr/share/doc/$pkgname_/examples"
+ # examples
+ install -Dm644 doc/examples/* "${pkgdir}/usr/share/doc/${pkgname_}/examples"
}