summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 811ef2c22c3e30cb59e6f75b545c899063278ddf (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
30
31
32
# Author: RedTide <redtid3@gmail.com>

prjname=jacksettings
pkgname=${prjname}-git
pkgver=r35.3b78f50
pkgrel=1
pkgdesc="JACK settings using jackd via systemd"
url="https://github.com/azdrums/${prjname}"
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/${prjname}.git")
md5sums=('SKIP')
pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}
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"
}