# $Id: PKGBUILD 137412 2015-07-25 19:38:49Z anatolik $ # Maintainer (Arch): Anatol Pomozov # Contributor (Arch): Michael Lass <bevan@bi-co.net> # Contributor (Arch): Philipp Schrader <philipp.schrader+arch@gmail.com> pkgname=uboot-tools pkgver=2015.07 pkgrel=1 pkgdesc='U-Boot bootloader utility tools' arch=(i686 x86_64 armv7h) url='http://www.denx.de/wiki/U-Boot/WebHome' license=(GPL) depends=(glibc openssl) source=(ftp://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2) sha1sums=('1e4e8df0ab7cfc2ee4ff6bf44c1b2085544d36f0') build() { cd u-boot-$pkgver make defconfig make tools-all } package() { install -m 755 -d "$pkgdir"/usr/bin install -m 755 -t "$pkgdir"/usr/bin/ u-boot-$pkgver/tools/{mk{,env}image,env/fw_printenv,img2srec,dumpimage,netconsole,jtagconsole,ncb} ln -s fw_printenv "$pkgdir"/usr/bin/fw_setenv install -m 644 -D u-boot-$pkgver/doc/mkimage.1 "$pkgdir"/usr/share/man/man1/mkimage.1 }