summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec9e9f02cda901d2ca8e771e2ae0c21bf017e02b (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
35
36
37
38
39
40
41
42
43
44
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>

_pkgname=jack_capture
pkgname="${_pkgname}-git"
pkgver=0.9.73.r163.472b13e
pkgrel=1
pkgdesc="Simple command line tool to record JACK audio output to a file (git version)"
arch=('i686' 'x86_64')
url="https://github.com/kmatheussen/jack_capture"
license=('GPL')
groups=('pro-audio')
depends=('jack' 'lame' 'liblo' 'libsndfile')
makedepends=('git')
optdepends=('meterbridge: levels monitor'
            'zenity: gtk2 gui')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/kmatheussen/${_pkgname}.git")
md5sums=('SKIP')


pkgver() {
  cd "${srcdir}/${_pkgname}"

  local ver="$(grep ^VERSION= Makefile | cut -f 2 -d =)"
  echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"

  make
}

package() {
  cd "${srcdir}/${_pkgname}"

  make PREFIX='/usr' DESTDIR="${pkgdir}" install
  # gtk2 gui
  install -Dm 755 "${_pkgname}_gui" "${pkgdir}/usr/bin/${_pkgname}_gui"
  # doc
  install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim:set ts=2 sw=2 et: