# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=savvycan
pkgver=213
pkgrel=1
pkgdesc="Qt-based CAN bus analysis tool"
url="https://github.com/collin80/SavvyCAN"
license="MIT"
# armhf: qt5
# s390x: doesn't build
arch="all !s390x !armhf"
makedepends="
	qt5-qtbase-dev
	qt5-qtserialbus-dev
	qt5-qtserialport-dev
	qt5-qtdeclarative-dev
	qt5-qttools-dev
	"
subpackages="$pkgname-doc"
source="
	$pkgname-$pkgver.tgz::https://github.com/collin80/SavvyCAN/archive/refs/tags/V$pkgver.tar.gz
	10-fix-helpfiles-path.patch
	"
builddir="$srcdir/SavvyCAN-$pkgver"

build() {
	qmake-qt5 PREFIX=/usr
	make
}

check() {
	make check
}

package() {
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="
fe0ef41e4fdcfc2e0d903c665be9d72a12eed620fce53bad5a6b5be49204641d682eceb79324cb376801fde2532b0fd02f1cb02709a906f6416bda25af085ab1  savvycan-213.tgz
31ba030ee260b2a7e92ed5708db1c09debab91cb9d6c24e21f15d42f6736756e431fdea2cd36e6c75a0b5aaa71f1f06169aef8cfd2e92de077bf905032df3185  10-fix-helpfiles-path.patch
"
