void-packages/srcpkgs/dtc/template
2018-01-04 20:11:22 +01:00

25 lines
701 B
Bash

# Template file for 'dtc'
pkgname=dtc
version=1.4.6
revision=1
build_style=gnu-makefile
make_build_args="NO_PYTHON=1"
make_install_args="$make_build_args"
hostmakedepends="git flex bison"
short_desc="Device Tree Compiler"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2"
homepage="http://www.devicetree.org/Device_Tree_Compiler"
CFLAGS="-fPIC"
distfiles="https://www.kernel.org/pub/software/utils/dtc/dtc-$version.tar.xz"
checksum=382302bfcc3c40734be80ac620983971d911ec4cde798f551873f3eb008c7b7e
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"
}
}