# Maintainer: Kevin Mihelich # Contributor: Jonny Gerold # Contributor: Julian Langschaedel pkgname=uboot-tools pkgver=2014.04 pkgrel=3 pkgdesc="U-Boot Tools" arch=('arm' 'armv6h' 'armv7h') license=('GPL' 'LGPL') provides=('uboot-env' 'uboot-mkimage') replaces=('uboot-env' 'uboot-mkimage') backup=(etc/fw_env.config) source=(ftp://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2 fw_env.config) md5sums=('6d2116d1385a66e9a59742caa9d62a54' 'ab6b6dee498a7517d72cda8315e9d197') build() { cd u-boot-${pkgver} touch include/config.{h,mk} include/autoconf.mk{.dep,} make tools-only make SUBDIRS=tools env make -C tools kwboot } package() { cd u-boot-${pkgver} install -dm755 ${pkgdir}/{usr/{bin,share/man/man1},etc} install -m755 tools/{dumpimage,mkimage,mkenvimage,proftool,env/fw_printenv,kwboot} ${pkgdir}/usr/bin ln -s /usr/bin/fw_printenv ${pkgdir}/usr/bin/fw_setenv install -m644 ${srcdir}/fw_env.config ${pkgdir}/etc install -m644 doc/{mkimage,kwboot}.1 ${pkgdir}/usr/share/man/man1 }