void-packages/srcpkgs/dtc/template

28 lines
682 B
Bash

# Template file for 'dtc'
pkgname=dtc
version=1.4.1
revision=1
build_style=gnu-makefile
hostmakedepends="git flex bison"
short_desc="Device Tree Compiler"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://www.devicetree.org/Device_Tree_Compiler"
CFLAGS="-fPIC"
do_fetch() {
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() {
depends="dtc>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/libfdt.so"
}
}