summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 859ef5c203571a85e535964d100778cc5d41f992 (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
26
27
28
29
# Author: RedTide <redtid3@gmail.com>

pkgname=jacksettings
pkgver=r33.a61f59c
pkgrel=1
pkgdesc="JACK settings using jackd via systemd"
url="https://github.com/azdrums/${pkgname}"
arch=('x86_64')
license=('GPL2')
depends=('qt5-base' 'jack2')
optdepends=('a2jmidid: A daemon for exposing legacy ALSA sequencer applications in JACK MIDI system.')
makedepends=('git')
source=("${pkgname}"::"git+https://github.com/azdrums/${pkgname}.git")
md5sums=('SKIP')
pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
    cd "${srcdir}/${pkgname}"
    qmake PREFIX="/usr/" JACKSettings.pro
    make INSTALL_DIR=$pkgdir
}
package() {
    cd "${srcdir}/${pkgname}"
    make INSTALL_ROOT=$pkgdir install
    install -Dm644 "${srcdir}/${pkgname}/systemd/a2jmidi@.service" "${pkgdir}/usr/lib/systemd/user/a2jmidi@.service"
    install -Dm644 "${srcdir}/${pkgname}/systemd/jacksettings@.service" "${pkgdir}/usr/lib/systemd/user/jacksettings@.service"
}