# Template file for 'heimdall'
pkgname=heimdall
version=1.4.2
revision=1
build_style=cmake
short_desc="Tool suite used to flash firmware onto Samsung Galaxy S devices"
maintainer="Renato Aguiar <contact@renatoaguiar.org>"
license="MIT"
homepage="https://github.com/Benjamin-Dobell/Heimdall"
distfiles="${homepage}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=589bef88f2597c8a84fe6fafbe928ddc9687438b5b54edd917d7df48c7e3eff8
wrksrc="Heimdall-${version}"
hostmakedepends="pkg-config"
makedepends="libusb-devel qt5-devel"

if [ -n "$CROSS_BUILD" ]; then
	# Need some devel packages in the host
	hostmakedepends+=" qt5-tools-devel"
fi

do_install() {
	vbin build/bin/heimdall
	vbin build/bin/heimdall-frontend
	vinstall heimdall/60-heimdall.rules 644 usr/lib/udev/rules.d
	vlicense LICENSE
}
