blob: 2f109a60c88a390b8e67ff4417b1b534699889c9 (
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
|
pkgname=xava-git
_pkgname=xava
pkgver=0.6.2.1.r0.g960965b
pkgrel=2
pkgdesc='X11 Audio Visualizer for Alsa/Pulseaudio/FIFO'
arch=('any')
url='https://github.com/nikp123/xava'
license=('MIT')
depends=('fftw' 'alsa-lib' 'iniparser' 'libx11' 'sdl2' 'portaudio' 'sndio' 'mesa')
makedepends=('cmake' 'git')
source=('git+https://github.com/nikp123/xava')
sha1sums=('SKIP')
pkgver() {
cd ${srcdir}/${_pkgname}
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
mkdir -p $_pkgname/build
cd $_pkgname/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make
}
package() {
cd $_pkgname
install -Dm755 build/"$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
install -Dm644 build/"$_pkgname".desktop "$pkgdir"/usr/share/applications/"$_pkgname".desktop
install -Dm644 assets/linux/"$_pkgname".svg "$pkgdir"/usr/share/icons/hicolor/scalable/apps/"$_pkgname".svg
install -Dm644 example_files/config "$pkgdir"/usr/share/xava/config.example
}
|