summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f269a0d086b5692812677182d971bab70bc2451 (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: Gimmeapill <gimmeapill at gmail dot com>

pkgname=xruncounter-git
pkgver=r17.6c85db6
pkgrel=1
pkgdesc="Small tool to measure jack xruns under DSP load"
arch=('i686' 'x86_64')
url="https://github.com/Gimmeapill/xruncounter"
license=('GPL3')
depends=('jack')
makedepends=('git')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("${pkgname%-*}::git+https://github.com/Gimmeapill/xruncounter")
sha256sums=('SKIP')

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

build() {
	cd "${srcdir}/${pkgname%-*}"
	gcc -Wall xruncounter.c -lm `pkg-config --cflags --libs jack` -o xruncounter
}

package() {
	cd "${srcdir}/${pkgname%-*}"
	mkdir $pkgdir/usr
	mkdir $pkgdir/usr/bin
	install -m655 xruncounter "$pkgdir/usr/bin"
}