# Contributor: Jakob Meier <comcloudway@ccw.icu>
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=g4music
pkgver=4.3
pkgrel=0
pkgdesc="Fast fluent lightweight music player written in GTK4, with a beautiful and adaptive user interface"
url="https://gitlab.gnome.org/neithern/g4music"
arch="all"
license="GPL-3.0-only"
subpackages="$pkgname-lang"
makedepends="
	cmake
	desktop-file-utils
	gettext-dev
	gst-plugins-base-dev
	gstreamer-dev
	libadwaita-dev
	meson
	vala
	"
source="https://gitlab.gnome.org/neithern/g4music/-/archive/v$pkgver/g4music-v$pkgver.tar.gz"
builddir="$srcdir/g4music-v$pkgver"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
7d0ade0f670d0c21fe165d7ef6003a57fdcd77ed3f66ff0af4ee8fc772685030a36ce1d3d2577ff8ef5c23ed5f2428b51d939573a8095f20cab386df5533de8f  g4music-v4.3.tar.gz
"
