summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e1461a4b4b17de41faa5329a4ff17d64be8f53c (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
33
34
# Maintainer: RedTide <redtid3@gmail.com>

prjname=jacksettings
pkgname=${prjname}-git
pkgver=r36.3e4500c
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')
provides=('jacksettings')
conflicts=('jacksettings')
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"
}