blob: 33a18ef8f7ff09412a5cc06ee5760c81d2c0c3e3 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=uboot-mkimage
pkgver=2013.10
pkgrel=0
pkgdesc="Image bundler for uImage files"
url="http://www.denx.de/wiki/U-Boot/"
arch=""
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="ftp://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2"
_builddir="$srcdir"/u-boot-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
touch include/config.h
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
make tools || return 1
}
package() {
cd "$_builddir"
install -c -D -m 755 tools/mkimage "$pkgdir"/usr/bin/mkimage || return 1
}
md5sums="a076a044b64371edc52f7e562b13f6b2 u-boot-2013.10.tar.bz2"
sha256sums="0d71e62beb952b41ebafb20a7ee4df2f960db64c31b054721ceb79ff14014c55 u-boot-2013.10.tar.bz2"
sha512sums="e54effcffe729af0f27724e7e5217718da565bfe085993c55fdd3dfa50cea9dbd215480edb957995ca717156fd4bd207c4075711ae384dc7cc488a0b4da5f34a u-boot-2013.10.tar.bz2"
|