void-packages/srcpkgs/dockstar-uboot/template

32 lines
1.0 KiB
Bash
Raw Normal View History

2015-05-17 23:14:03 +02:00
# Template file for 'kirkwood-uboot'
pkgname=dockstar-uboot
2015-08-17 08:06:12 +02:00
version=4
2015-05-17 23:14:03 +02:00
revision=1
wrksrc="u-boot-${version##*.}"
only_for_archs="armv5tel"
short_desc="(archlinuxarm) u-boot compiled for dockstar"
2015-05-17 23:14:03 +02:00
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="https://github.com/archlinuxarm/u-boot"
2015-08-17 08:06:12 +02:00
distfiles="https://github.com/archlinuxarm/u-boot/archive/R$version.tar.gz http://archlinuxarm.org/os/armv5te/boot/dockstar/uboot-dockstar.env"
2015-05-17 23:14:03 +02:00
checksum="22492ec730f0e91e4f732d8793cea39fb5945386eb46e86f3d8446978361c551 ec6522fdb74a41bc2b6f301729c421c9600be1a479bf7932405b39d2f459ada7"
skip_extraction="uboot-dockstar.env"
2015-05-17 23:14:03 +02:00
do_configure() {
make dockstar_config
2015-05-17 23:14:03 +02:00
}
do_build() {
unset CFLAGS CXXFLAGS LDFLAGS
if [ "$CROSS_BUILD" ]; then
make CROSS_COMPILE=${XBPS_CROSS_TRIPLET}- u-boot.kwb
else
make u-boot.kwb
fi
dd if=u-boot.kwb of=uboot-dockstar.kwb bs=512k conv=sync
2015-05-17 23:14:03 +02:00
}
do_install() {
local srcdir="$XBPS_SRCDISTDIR/$pkgname-$version"
vinstall uboot-dockstar.kwb 755 boot
vinstall ${srcdir}/uboot-dockstar.env 644 boot
2015-05-17 23:14:03 +02:00
}