dtc: add distfiles+checksum

This commit is contained in:
Andrea Brancaleoni 2015-07-27 00:03:20 +02:00
parent 5422bba141
commit f764721ad2

View file

@ -1,7 +1,7 @@
# Template file for 'dtc' # Template file for 'dtc'
pkgname=dtc pkgname=dtc
version=1.4.1 version=1.4.1
revision=1 revision=2
build_style=gnu-makefile build_style=gnu-makefile
hostmakedepends="git flex bison" hostmakedepends="git flex bison"
short_desc="Device Tree Compiler" short_desc="Device Tree Compiler"
@ -9,12 +9,8 @@ maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2" license="GPL-2"
homepage="http://www.devicetree.org/Device_Tree_Compiler" homepage="http://www.devicetree.org/Device_Tree_Compiler"
CFLAGS="-fPIC" CFLAGS="-fPIC"
distfiles="https://www.kernel.org/pub/software/utils/dtc/dtc-$version.tar.xz"
do_fetch() { checksum=77992ad8eac7b68f553d0ba58e5b51604ac803d126196c99e3ae38aaae28bb94
local url="git://git.kernel.org/pub/scm/utils/${pkgname}/${pkgname}.git"
msg_normal "Fetching source from $url ...\n"
git clone --branch v${version} ${url} ${pkgname}-${version}
}
dtc-devel_package() { dtc-devel_package() {
depends="dtc>=${version}_${revision}" depends="dtc>=${version}_${revision}"