# Maintainer: stratum nine <strata@dropswitch.net>

pkgname=uboot-mkimage
pkgver=2013.01.01
pkgrel=1
pkgdesc="This package contains the mkimage utility, which encapsulates a compressed "uImage" Linux kernel image for use with the U-Boot bootloader"
arch=('arm')
license=('GPL')
url="http://www.denx.de/wiki/U-Boot/WebHome"
depends=('glibc')
source=(http://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2)
md5sums=('73939f78606f89a1775c7e9acb2ca617')

build() {
  cd ${srcdir}/u-boot-${pkgver}

  # Build tools only
  make tools
}

package() {
	install -Dm 755 $srcdir/u-boot-${pkgver}/tools/mkimage $pkgdir/usr/bin/mkimage
	install -Dm 644 $srcdir/u-boot-${pkgver}/doc/mkimage.1 $pkgdir/usr/share/man/man1/mkimage.1
}