pkgname=toolblex
pkgver=0.16
pkgrel=1
pkgdesc="A Bluetooth Low Energy device scanner and analyzer"
url="https://github.com/emericg/toolBLEx"
arch=("x86_64")
license=("GPL-3.0-or-later")
depends=("qt6-base" "qt6-declarative" "qt6-svg" "qt6-connectivity" "qt6-charts")
makedepends=("qt6-tools" "cmake" git)
optdepends=("bluez-utils: extra bluetooth infos")

source=("source::git+https://github.com/emericg/toolBLEx.git#tag=v${pkgver}")
sha256sums=('0d6f1da27279ea33999519335039fb0a7b87928ee1bf22331af278b5a67b8cc2')

build() {
	cd source
	cmake -B build/ -DCMAKE_BUILD_TYPE=Release
	cmake --build build/ --config Release
}

package() {
	cd source
	DESTDIR="$pkgdir" cmake --install build --prefix /usr
}
