diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-11-02 20:12:50 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-11-02 20:13:08 -0500 |
commit | 0469e85b7cf4248454a80421770fa2012ee68b53 (patch) | |
tree | 542dbb97cf8cf3a9219ad06aaef8e0bc73452160 /main/uboot-mkimage/APKBUILD | |
parent | e205fc355f1ce6394542876f2e319ca91001c5cf (diff) | |
download | aports-0469e85b7cf4248454a80421770fa2012ee68b53.tar.bz2 aports-0469e85b7cf4248454a80421770fa2012ee68b53.tar.xz |
main/uboot-mkimage: new aport
Diffstat (limited to 'main/uboot-mkimage/APKBUILD')
-rw-r--r-- | main/uboot-mkimage/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/uboot-mkimage/APKBUILD b/main/uboot-mkimage/APKBUILD new file mode 100644 index 0000000000..b1241b6e89 --- /dev/null +++ b/main/uboot-mkimage/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=uboot-mkimage +pkgver=2011.09 +pkgrel=0 +pkgdesc="image bundler for uImage files" +url="http://www.denx.de/wiki/U-Boot/" +arch="all" +license="GPL" +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 +} + +md5sums="259017613713c01bd9bcc82edc153e4f u-boot-2011.09.tar.bz2" |