# Template file for 'adw-bluetooth'
pkgname=adw-bluetooth
version=1.0.0
revision=1
build_style=meson
hostmakedepends="pkg-config nodejs blueprint-compiler glib-devel gjs-devel desktop-file-utils"
makedepends="gjs-devel gtk4 libadwaita"
depends="gjs libadwaita"
short_desc="Bluetooth device manager built with GTK4 and Libadwaita"
maintainer="xJayMorex <github@johntaylor.hu>"
license="GPL-3.0-or-later"
homepage="https://github.com/ezratweaver/adw-bluetooth"
distfiles="https://github.com/ezratweaver/adw-bluetooth/archive/refs/tags/${version}.tar.gz"
checksum=a2815400f4090fa375b06fbe5fbc6df4926701cc84498d1f50a8648b9d489d99

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
}
