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

pkgname=tagger-git
pkgver=2023.11.3.r1.g40ac3fa7
pkgrel=1
pkgdesc='Tag your music'
arch=(aarch64 armv7h x86_64 i686)
url=https://github.com/NickvisionApps/${pkgname%-git}
license=(GPL3)
depends=('dotnet-runtime>=8' ffmpeg libadwaita chromaprint webp-pixbuf-loader)
makedepends=(blueprint-compiler 'dotnet-sdk>=8' git)
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=("git+$url" "git+${url%tagger}cakescripts#commit=1b48cc0957fcd65c3b0f25285e84033fb5b7f542")
b2sums=(SKIP SKIP)

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

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

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

package() {
	cd ${pkgname%-git}
	dotnet cake --target=Install --destdir="$pkgdir"
	ln -sv org.nickvision.tagger "$pkgdir"/usr/bin/tagger
}