summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 179eb2a481966eac0b05c0893c43b1e795604e80 (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
# Maintainer: Matteo Bonora <bonora.matteo@gmail.com>

pkgname=cava_cmmk-git
_pkgname=cava_cmmk
pkgver=12.584920f
pkgrel=1
pkgdesc='Audio visualizer for Cooler Master keyboards.'
arch=('any')
url='https://github.com/Bonnee/cava_cmmk'
license=('GPL3')
depends=('libcmmk-git' 'cava')
makedepends=('git')
source=("git+https://github.com/Bonnee/$_pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd "$_pkgname"

  # use, if no version string provided neither in sources nor in git describe:
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)

  # if s tag exists, use this
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgname"

  make
}

package() {
  cd "$_pkgname"

  make DESTDIR="$pkgdir" install
}