2011-08-19 00:14:30 +00:00
|
|
|
# $Id: PKGBUILD 135587 2011-08-16 07:52:56Z thomas $
|
2011-01-15 17:41:34 +00:00
|
|
|
# Maintainer: Thomas Bächler <thomas@archlinux.org>
|
|
|
|
|
2011-08-01 22:18:04 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@plugapps.com>
|
2011-05-31 21:11:16 +00:00
|
|
|
# - removed -mtune, changed -march to v7/v5 compat
|
2011-01-15 17:41:34 +00:00
|
|
|
|
2011-01-16 05:37:25 +00:00
|
|
|
plugrel=1
|
|
|
|
|
2011-01-15 17:41:34 +00:00
|
|
|
pkgname=mkinitcpio-busybox
|
2011-08-19 00:14:30 +00:00
|
|
|
pkgver=1.18.5
|
2011-01-15 17:41:34 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="base initramfs tools"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.busybox.net/"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('glibc')
|
|
|
|
source=(http://busybox.net/downloads/busybox-${pkgver}.tar.bz2
|
|
|
|
config)
|
2011-08-19 00:14:30 +00:00
|
|
|
sha256sums=('10954fcd5c48d8a262a3497b16227bf983a05658bf2bf661af2fdeca773f2fc0'
|
|
|
|
'0961b4db5eb5eaa1b8d353a3fc792884f4f2733ec0f5715ba88a0e667f0f48ec')
|
2011-01-15 17:41:34 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/busybox-${pkgver}"
|
|
|
|
|
|
|
|
unset CFLAGS CXXFLAGS
|
2011-06-22 00:48:50 +00:00
|
|
|
if [ ${CARCH} = "armv7h" ]; then
|
2011-05-31 21:11:16 +00:00
|
|
|
sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=armv7-a -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
|
2011-02-21 17:11:48 +00:00
|
|
|
else
|
|
|
|
sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=armv5te -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
|
|
|
|
fi
|
|
|
|
make
|
2011-01-15 17:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -D -m755 "${srcdir}/busybox-${pkgver}"/busybox "${pkgdir}/lib/initcpio/busybox"
|
|
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|