#Packager: George Vlahavas pkgname=dtc pkgver=1.6.1 pkgrel=1gv source=("https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/dtc-$pkgver.tar.gz" "python310.patch") docs=("manual.txt" "readme*" "install" "GPL" "changelog" "authors" "news" "todo") url=https://git.kernel.org/pub/scm/utils/dtc/dtc.git slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "dtc (Device Tree Compiler for Flat Device Trees)" "Device Tree Compiler, 'dtc', transforms a textual description of a" "device tree ('DTS') into a binary object ('DTB'). DTS is most" "commonly used on embedded platforms. This tool is particularly useful" "for building a DTS-enabled 'U-Boot' binary." "" "See http://elinux.org/Device_Tree for more information." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/python310.patch || exit 1 sed -i 's/-Werror//' Makefile make clean make CFLAGS="$CFLAGS" PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$startdir/pkg make SETUP_PREFIX=$startdir/pkg/usr PREFIX=$startdir/pkg/usr LIBDIR=$startdir/pkg/usr/lib${LIBDIRSUFFIX} install }