blob: 9b365f57937a66d50078783aa4725b4ce47cd1b1 (
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
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: vpertys
# Modified based on libcava and cava-git
pkgname=libcava-git
pkgver=r965.ca02eef
pkgrel=1
pkgdesc='Fork to provide cava as a shared library, e.g. used by waybar. Cava is not provided as executable. (GIT)'
arch=('x86_64')
url='https://github.com/LukashonakV/cava'
license=('MIT')
provides=('libcava')
conflicts=('libcava')
depends=(
'fftw'
'ncurses'
'alsa-lib'
'iniparser'
'libglvnd'
'sdl2'
'portaudio'
'sndio'
'libpulse'
'libpipewire'
)
makedepends=(
'base-devel'
'cmake'
'git'
'meson'
'autoconf-archive'
)
source=("${pkgname}::git+https://github.com/LukashonakV/cava.git")
sha1sums=('SKIP')
options=('!buildflags')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
meson setup \
--prefix=/usr \
-Dbuild_target=lib \
build
ninja -C build
}
package() {
cd "${srcdir}/${pkgname}"
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|