opt/dtc/Pkgfile

23 lines
505 B
Plaintext

# Description: Device Tree Compiler and libfdt
# URL: https://github.com/dgibson/dtc
# Maintainer: Juergen Daubert, jue at crux dot nu
name=dtc
version=1.7.1
release=1
source=(https://www.kernel.org/pub/software/utils/$name/$name-$version.tar.xz)
build() {
CFLAGS+=" -ffat-lto-objects"
meson setup build $name-$version \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
}