mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# $Id: PKGBUILD 141111 2011-10-24 09:59:20Z dreisner $
|
|
# Maintainer: Dave Reisner <dreisner@archlinux.org>
|
|
# Maintainer: Thomas Bächler <thomas@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - removed -mtune, changed -march to v7/v5 compat
|
|
|
|
plugrel=1
|
|
|
|
pkgname=mkinitcpio-busybox
|
|
pkgver=1.19.4
|
|
pkgrel=2
|
|
pkgdesc="base initramfs tools"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.busybox.net/"
|
|
license=('GPL')
|
|
depends=('glibc')
|
|
options=('!buildflags')
|
|
source=("http://busybox.net/downloads/busybox-$pkgver.tar.bz2"
|
|
'config')
|
|
sha256sums=('9b853406da61ffb59eb488495fe99cbb7fb3dd29a31307fcfa9cf070543710ee'
|
|
'28dc775e12c40718b48e1dd6a63544ca9d8aa128f786577b27e4df73e1e8766a')
|
|
|
|
build() {
|
|
cd "$srcdir/busybox-$pkgver"
|
|
|
|
if [ ${CARCH} = "armv7h" ]; then
|
|
ARMCARCH="armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16"
|
|
else
|
|
ARMCARCH="armv5te"
|
|
fi
|
|
|
|
local safeflags="${ARMCARCH} -Os -pipe -fno-strict-aliasing"
|
|
|
|
sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="-march='"$safeflags"'"|' \
|
|
"$srcdir/config" > .config
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 "$srcdir/busybox-$pkgver/busybox" "$pkgdir/usr/lib/initcpio/busybox"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|