python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / usbarmory-u-boot / template
blob9ed3ea08eb1bec24e88fb37ec8fc7d0007b1e4da
1 # Template file for 'usbarmory-uboot'
2 pkgname=usbarmory-u-boot
3 version=2015.04
4 revision=3
5 wrksrc="u-boot-$version"
6 hostmakedepends="uboot-mkimage bc"
7 short_desc="USB armory U-Boot files for SD booting"
8 maintainer="Enno Boland <gottox@voidlinux.eu>"
9 license="GPL-2"
10 homepage="https://github.com/hardkernel/u-boot"
11 distfiles="ftp://ftp.denx.de/pub/u-boot/u-boot-$version.tar.bz2"
12 checksum="0a1a70df586655f527befa6f12e184e96ed61b126e5a567382321b17200f5d60"
14 only_for_archs="armv7l armv7l-musl"
16 do_configure() {
17         make distclean
18         make usbarmory_config
21 do_build() {
22         unset CFLAGS CXXFLAGS LDFLAGS
24         if [ "$CROSS_BUILD" ]; then
25                 make ARCH=arm CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
26         else
27                 make ARCH=arm
28         fi
31 do_install() {
32         vinstall u-boot.imx 600 boot