PKGBUILDs/core/uboot-env/PKGBUILD

40 lines
887 B
Bash
Raw Normal View History

# Maintainer: Jonny Gerold <jonny@fsk141.com>
# Contributor: Julian Langschaedel <meta.rb@gmail.com>
2011-06-15 15:38:28 +00:00
plugrel=2
2011-06-15 04:37:43 +00:00
pkgname=uboot-env
_tool=env
pkgver=2009.11
pkgrel=3
pkgdesc="fw_printenv/fw_setenv binaries"
arch=('arm')
license=('GPL' 'LGPL')
backup=(etc/fw_env.config)
install=uboot-env.install
source=(ftp://ftp.denx.de/pub/u-boot/u-boot-$pkgver.tar.bz2
fw_env.config)
md5sums=('d94700614225f53c853dfe714eb5fa47'
'88177fd1bf693be3af892e5f9014f6b5')
build() {
cd $srcdir/u-boot-$pkgver
touch include/config.{h,mk} include/autoconf.mk{.dep,}
sed -i \
-e 's:HOST_CFLAGS:HOSTCFLAGS:g' \
Makefile *.mk tools/Makefile
sed -i \
-e '/CFLAGS/s:-O::' \
tools/Makefile
make SUBDIRS=tools ${_tool}
mkdir -p $pkgdir/{etc,usr/bin}
install -Dm755 tools/env/fw_printenv $pkgdir/usr/bin/
cp $srcdir/fw_env.config $pkgdir/etc
cd $pkgdir/usr/bin
ln -s fw_printenv fw_setenv
}