summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02c0226f93a2ce99818834713e96bbd18aff4a85 (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
# Maintainer: Julian Wolff <wolff at julianwolff dot de>
pkgname=jackman-kcm-git
pkgver=r33.9d24d09
pkgrel=1
pkgdesc="KCM module for jackman, a collection of scripts that help managing multiple audio interfaces with Jack"
arch=('i686' 'x86_64')
url="https://github.com/progwolff/jackman_kcm"
provides=('jackman-kcm')
license=("GPL3")
depends=('jackman' 'xdg-utils' 'kdeclarative' 'plasma-framework')
optdepends=('mplayer: test sound')
makedepends=('git' 'extra-cmake-modules' 'qt5-tools' 'python')
source=('jackman_kcm::git+https://github.com/progwolff/jackman_kcm.git')
md5sums=('SKIP')

_gitroot="https://github.com/progwolff/jackman_kcm.git"
_gitname=jackman_kcm

pkgver() {
  cd "$_gitname"
  ( 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"

  mkdir -p build
  cd build

  cmake ../${_gitname} -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd ${srcdir}/build
  make DESTDIR="${pkgdir}" install
}