summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 102e5e3136ba44163fd254560922899490125f1d (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
# Maintainer: Mattia Borda <mattiagiovanni.borda@icloud.com>

pkgname=cavalier
pkgver=2024.1.0
pkgrel=1
pkgdesc='Audio visualizer based on CAVA'
arch=(any)
url=https://github.com/NickvisionApps/$pkgname
license=(MIT)
depends=(cava 'dotnet-runtime>=8' libadwaita iniparser fftw)
makedepends=(blueprint-compiler 'dotnet-sdk>=8' git)
source=("git+$url" "git+${url%cavalier}cakescripts#commit=1b48cc0957fcd65c3b0f25285e84033fb5b7f542")
b2sums=('SKIP'
        'SKIP')

prepare() {
	rm -rf cavalier/CakeScripts
	mv cakescripts cavalier/CakeScripts
	cd $pkgname
	dotnet tool restore
}

build() {
        cd $pkgname
        dotnet cake --target=Publish --prefix=/usr --ui=gnome
}

package() {
        cd $pkgname
        dotnet cake --target=Install --destdir="$pkgdir"
        ln -sv org.nickvision.cavalier "$pkgdir"/usr/bin/cavalier
        install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}