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

pkgname=whatchord
pkgver=1.261102
pkgrel=0
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=('def22ad1cfca0b30066e5af0cadc4259c2af3dd19e174e7112c9f0e74fd77225') #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
