void-packages/srcpkgs/heimdall/template
2016-02-02 02:18:51 -08:00

31 lines
912 B
Bash

# Template file for 'heimdall'
pkgname="heimdall"
version="1.4.1"
revision=1
build_style=gnu-configure
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="https://github.com/Benjamin-Dobell/Heimdall/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum="f0a6e4b5bf806fe4ab5413dd869817b600bcd339b642ff46ec0c5fe69adf7230"
wrksrc="Heimdall-${version}"
hostmakedepends="pkg-config"
makedepends="libusb-devel"
do_configure() {
cd $wrksrc/libpit
./configure ${configure_args}
cd $wrksrc/heimdall
./configure ${configure_args}
}
do_build() {
make ${makejobs} ${make_build_args} -C libpit
make ${makejobs} ${make_build_args} -C heimdall
}
do_install() {
make DESTDIR=${DESTDIR} ${make_install_args} -C heimdall install
vlicense LICENSE
}