# Template file for 'decibels'
pkgname=decibels
version=49.6.1
revision=1
build_style=meson
hostmakedepends="blueprint-compiler desktop-file-utils gettext gjs glib-devel
 gtk4-update-icon-cache nodejs pkg-config"
makedepends="gjs-devel libadwaita-devel"
depends="gjs gst-plugins-good1 libadwaita"
checkdepends="appstream-glib"
short_desc="Play audio files"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://apps.gnome.org/Decibels/"
changelog="https://gitlab.gnome.org/GNOME/decibels/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/decibels/${version%%.*}/decibels-${version}.tar.xz"
checksum=9a67ba14df23517c849fcfdea764c73a241e59055299b125e98aeab2a7801ad5

pre_configure() {
	npm i typescript
	export PATH="$PATH:$(pwd)/node_modules/.bin"
}

pre_build() {
	if [ "$CROSS_BUILD" ]; then
		export GI_TYPELIB_PATH="${XBPS_CROSS_BASE}/usr/lib/girepository-1.0"
	fi
}
