updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / u-boot / PKGBUILD
blob6b02c37eb016bccf0a36c62da40382ce93439df8
1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=u-boot
4 pkgver=2010.09
5 pkgrel=1
6 pkgdesc='Utilities for working with Das U-Boot'
7 arch=('i686' 'x86_64')
8 url="http://www.denx.de/wiki/U-Boot/WebHome"
9 license=('GPL2')
10 backup=('etc/fw_env.config')
11 source=("ftp://ftp.denx.de/pub/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
12         'no-cross-compiler.patch')
13 md5sums=('6dcc2cc47ecc96d4da984556d601a8c0'
14         'c84bcc2ceffdf35f937d01e7f8db2afd')
16 build(){
17   cd ${srcdir}/${pkgname}-${pkgver}
19   patch -Np1 -i ${srcdir}/no-cross-compiler.patch
21   make sheevaplug_config
23   # create files normally created by cross-compiler
24   touch include/autoconf.mk{,dep}
25   mkdir -p cpu/arm926ejs
26   touch {cpu/arm926ejs,examples/standalone,tools,tools/env}/.depend
28   make tools HOSTCC="gcc" HOSTSTRIP=/bin/true CROSS_COMPILE=""
29   make env CC="gcc"
32 package() {
33   cd ${srcdir}/${pkgname}-${pkgver}
35   install -d ${pkgdir}/usr/bin
36   install -m755 tools/mkimage ${pkgdir}/usr/bin/
37   install -m755 tools/env/fw_printenv ${pkgdir}/usr/bin/
38   ln -sf /usr/bin/fw_printenv ${pkgdir}/usr/bin/fw_setenv
40   install -d ${pkgdir}/etc
41   install -m644 tools/env/fw_env.config ${pkgdir}/etc/