void-packages/srcpkgs/dtc/template
Michal Vasilek 08992cc994 dtc: update to 1.6.1.
* remove git from hostmakedepends
2021-07-28 01:26:07 -03:00

27 lines
748 B
Bash

# Template file for 'dtc'
pkgname=dtc
version=1.6.1
revision=1
build_style=gnu-makefile
make_build_args="NO_PYTHON=1"
make_install_args="$make_build_args"
hostmakedepends="flex bison pkg-config"
makedepends="libyaml-devel"
short_desc="Device Tree Compiler"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-only"
homepage="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
distfiles="https://www.kernel.org/pub/software/utils/dtc/dtc-${version}.tar.xz"
checksum=65cec529893659a49a89740bb362f507a3b94fc8cd791e76a8d6a2b6f3203473
CFLAGS="-fPIC"
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"
}
}