PKGBUILDs/community/uboot-tools/PKGBUILD
2022-02-07 01:31:59 +00:00

32 lines
987 B
Bash

# Maintainer: Anatol Pomozov
# Contributor: Michael Lass <bevan@bi-co.net>
# Contributor: Philipp Schrader <philipp.schrader+arch@gmail.com>
# remove when bumped upstream
pkgname=uboot-tools
pkgver=2022.01
pkgrel=1
pkgdesc='U-Boot bootloader utility tools'
arch=(x86_64)
url='https://www.denx.de/wiki/U-Boot/WebHome'
license=(GPL)
depends=(openssl)
source=(ftp://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2{,.sig})
validpgpkeys=('1A3C7F70E08FAB1707809BBF147C39FF9634B72C')
options=(!lto)
sha1sums=('3371c1d58966e9000b4680e90cd29caa212969d2'
'SKIP')
build() {
cd u-boot-$pkgver
make defconfig
make tools-all KBUILD_HOSTLDFLAGS=${LDFLAGS}
}
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
}