summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 622049ff0a0472164d428a4c95beca70912aa16a (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
# Maintainer: Devin J. Pohly <djpohly+arch@gmail.com>
pkgname=jackstrobe-git
pkgver=r8.87dc213
pkgrel=1
pkgdesc="Simple strobe tuner using JACK and Qt 5"
arch=('x86_64')
url="https://github.com/jessecrossen/jackstrobe"
license=('Unlicense')
depends=('jack' 'qt5-base')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/jessecrossen/jackstrobe')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}/project"
	qmake-qt5 PREFIX=/usr
	make
}

package() {
	cd "$srcdir/${pkgname%-git}/project"
	install -D jackstrobe "$pkgdir/usr/bin/jackstrobe"
}