void-packages/srcpkgs/uboot-mkimage/template

26 lines
751 B
Bash

# Template file for 'uboot-mkimage'
pkgname=uboot-mkimage
version=2014.01
revision=5
wrksrc="u-boot-${version}"
short_desc="The U-Boot mkimage utility"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2"
homepage="http://www.denx.de/wiki/U-Boot/WebHome"
distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
checksum=cdaf8c81583abfa2e73da46cfcf87b0cbd9741d9aa766f3b905376e3652d543d
do_configure() {
sed -i 's,ulong,unsigned long,g' include/*.[ch] common/*.[ch] tools/*.[ch]
}
do_build() {
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
make HOSTSTRIP=: HOSTCC="$XBPS_CROSS_TRIPLET-gcc $CFLAGS $LDFLAGS" tools
else
make HOSTSTRIP=: HOSTCC="$CC $CFLAGS $LDFLAGS" tools
fi
}
do_install() {
vbin tools/mkimage
vman doc/mkimage.1
}