2011-10-29 18:26:32 +00:00
|
|
|
# $Id: PKGBUILD 141111 2011-10-24 09:59:20Z dreisner $
|
|
|
|
# Maintainer: Dave Reisner <dreisner@archlinux.org>
|
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-10-29 18:26:32 +00:00
|
|
|
pkgver=1.19.2
|
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')
|
2011-10-29 18:26:32 +00:00
|
|
|
options=('!buildflags')
|
|
|
|
source=("http://busybox.net/downloads/busybox-$pkgver.tar.bz2"
|
|
|
|
'config')
|
|
|
|
sha256sums=('ea7ec9b6df70b8c528f4a2b6300e9913431c7223308fb08dfafa7508d75a0cb9'
|
|
|
|
'21ae2cd21e33ba1ef9500a9b14273579fc554bf995cfd7907fb3fe94fc162cf8')
|
2011-01-15 17:41:34 +00:00
|
|
|
|
|
|
|
build() {
|
2011-10-29 18:26:32 +00:00
|
|
|
cd "$srcdir/busybox-$pkgver"
|
2011-01-15 17:41:34 +00:00
|
|
|
|
2011-06-22 00:48:50 +00:00
|
|
|
if [ ${CARCH} = "armv7h" ]; then
|
2011-10-29 18:26:32 +00:00
|
|
|
ARMCARCH="armv7-a"
|
2011-02-21 17:11:48 +00:00
|
|
|
else
|
2011-10-29 18:26:32 +00:00
|
|
|
ARMCARCH="armv5te"
|
2011-02-21 17:11:48 +00:00
|
|
|
fi
|
2011-10-29 18:26:32 +00:00
|
|
|
|
|
|
|
local safeflags="${ARMCARCH} -Os -pipe -fno-strict-aliasing"
|
|
|
|
|
|
|
|
sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="-march='"$safeflags"'"|' \
|
|
|
|
"$srcdir/config" > .config
|
|
|
|
|
2011-02-21 17:11:48 +00:00
|
|
|
make
|
2011-01-15 17:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2011-10-29 18:26:32 +00:00
|
|
|
install -Dm755 "$srcdir/busybox-$pkgver/busybox" "$pkgdir/lib/initcpio/busybox"
|
2011-01-15 17:41:34 +00:00
|
|
|
}
|
2011-10-29 18:26:32 +00:00
|
|
|
|
2011-01-15 17:41:34 +00:00
|
|
|
# vim:set ts=2 sw=2 et:
|