# Maintainer: Przemyslaw R. Pietraszczyk <przem@prymula.ct8.pl>

pkgname=whatchord
pkgver=1.261004
pkgrel=2
pkgdesc="A completely loose reference to the Synthesia application"
arch=('x86_64')
url="prymula.ct8.pl"
license=('MIT')
provides=('whatchord')
depends=('sdl3' 'sdl3_ttf' 'rtmidi' 'nlohmann-json' 'pipewire-jack' 'soundfont-fluid' 'wireplumber' 'pipewire-session-manager')
makedepends=('make' 'gcc' 'pkg-config' 'sdl3' 'sdl3_ttf' 'rtmidi' 'nlohmann-json' 'pipewire-jack' 'wireplumber' 'soundfont-fluid' 'pipewire-session-manager' )
source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::file://${pkgname}-${pkgver}-${pkgrel}.tar.gz")
sha256sums=('7c96bc889b439414fe1b976a2994c8c6ee3dbe8f068b10334262fe5fa32c7f51') #generate with 'makepkg -g' || sha256sum
build() {
	cd "$srcdir/${pkgname}-${pkgver}-${pkgrel}"
	make
}

package() {
	cd "$srcdir/${pkgname}-${pkgver}-${pkgrel}"
	make DESTDIR="${pkgdir}" install

	# Upewniasz się jedynie, że plik .desktop trafia na swoje miejsce
	install -Dm644 "whatchord.desktop" "$pkgdir/usr/share/applications/whatchord.desktop"
}

# Zbuduje pakiet z dociągnięciem zalezności i zainstaluje
# makepkg -si
