summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e86a58011bad5922b343bf4ac59869a333b7cca (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=r6.0b383f6
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' 'jack')
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"
}