void-packages/srcpkgs/heimdall/template

26 lines
796 B
Bash

# Template file for 'heimdall'
pkgname=heimdall
version=1.4.2
revision=2
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libusb-devel qt5-devel"
short_desc="Tool suite used to flash firmware onto Samsung Galaxy S devices"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://gitlab.com/BenjaminDobell/Heimdall"
distfiles="https://gitlab.com/BenjaminDobell/Heimdall/-/archive/v${version}/Heimdall-v${version}.tar.bz2"
checksum=2de553496fff1441a3e917b3da9e862192bd7bb05d9cab376fefcc12f82d2f05
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
}