summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b50a9eafa671e424d8100a4c86649684d4e7f80a (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
57
58
59
60
61
62
pkgname=xava-git
_pkgname=xava
pkgver=0.7.1.1.r6.ge1d52fa
pkgrel=1
pkgdesc='X11 Audio Visualizer for Alsa/Pulseaudio/FIFO'
arch=('any')
url='https://github.com/nikp123/xava'
license=('MIT')
depends=(
	# Base filter
	'fftw'

	# Input methods
	'alsa-lib'
	'portaudio'
        'libpulse'
	'sndio' 
        'pipewire'

	# Output libraries
	'wayland' 'wayland-protocols'
	'libx11' 'libxrandr'
	'sdl2'

	# Graphics API support
        'mesa' 'glew' 'cairo'

	# Misc
	'curl' 'dbus' 'taglib' 'zlib'
)
makedepends=(
	# To build and fetch dependencies
	'cmake' 
	'git'
	# To build the Linux icon
	'imagemagick' 
	'librsvg'
)
source=('git+https://github.com/nikp123/xava')
sha1sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  mkdir -p $_pkgname/build
  cd $_pkgname/build
  cmake -DXAVA_LINK_TO_INSTALL_DIR=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir"/usr ..
  make
}

package() {
  cd $_pkgname

  # Install binaries
  cd build
    make install
  cd ..
}