summaryrefslogtreecommitdiff
path: root/libre/uboot-tools/PKGBUILD
blob: 4094c6d39288c44f15ee8be8bb9f0ab00e326261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 137412 2015-07-25 19:38:49Z anatolik $
# Maintainer: Anatol Pomozov
# Contributor: Michael Lass <bevan@bi-co.net>
# Contributor: 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
}