void-packages/srcpkgs/dtc/template
2019-09-07 21:42:41 +02:00

27 lines
752 B
Bash

# Template file for 'dtc'
pkgname=dtc
version=1.5.1
revision=1
build_style=gnu-makefile
make_build_args="NO_PYTHON=1"
make_install_args="$make_build_args"
hostmakedepends="git 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=660b74039690fc37013660544d09191834efb58503c73c555c5513ba75ab031f
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"
}
}