summaryrefslogtreecommitdiffstats
path: root/abs/core/mkinitcpio-busybox/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/mkinitcpio-busybox/PKGBUILD')
-rw-r--r--abs/core/mkinitcpio-busybox/PKGBUILD34
1 files changed, 19 insertions, 15 deletions
diff --git a/abs/core/mkinitcpio-busybox/PKGBUILD b/abs/core/mkinitcpio-busybox/PKGBUILD
index da2702c..55071e0 100644
--- a/abs/core/mkinitcpio-busybox/PKGBUILD
+++ b/abs/core/mkinitcpio-busybox/PKGBUILD
@@ -1,31 +1,35 @@
-# $Id: PKGBUILD 123921 2011-05-14 11:29:02Z thomas $
+# $Id: PKGBUILD 160678 2012-06-03 16:32:18Z dreisner $
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
# Maintainer: Thomas Bächler <thomas@archlinux.org>
+
pkgname=mkinitcpio-busybox
-pkgver=1.18.4
-pkgrel=2
+pkgver=1.20.1
+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)
-sha256sums=('4d24d37bd6f1bd153e8cf9a984ec2f32f18464f73ca535e2cc2e8be9694097fa'
- 'dd6dca08fbc335f1394e0f1b619df6895349c759d0c6e43456aed411e16d4194')
+options=('!buildflags')
+source=("http://busybox.net/downloads/busybox-$pkgver.tar.bz2"
+ 'config' 'sys_resource.patch')
build() {
- cd "${srcdir}/busybox-${pkgver}"
+ cd "$srcdir/busybox-$pkgver"
+ patch -Np1 < $srcdir/sys_resource.patch
+ local safeflags="${CARCH/_/-} -mtune=generic -Os -pipe -fno-strict-aliasing"
+
+ sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="-march='"$safeflags"'"|' \
+ "$srcdir/config" > .config
- unset CFLAGS CXXFLAGS
- if [ ${CARCH} = "x86_64" ]; then
- sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=x86-64 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
- else
- sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=i686 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
- fi
make
}
package() {
- install -D -m755 "${srcdir}/busybox-${pkgver}"/busybox "${pkgdir}/lib/initcpio/busybox"
+ install -Dm755 "$srcdir/busybox-$pkgver/busybox" "$pkgdir/usr/lib/initcpio/busybox"
}
+
# vim:set ts=2 sw=2 et:
+md5sums=('af2fededb6dca804544c05684636e574'
+ 'dd4c0fefe9bb9e65945a5b5525543fd7'
+ '47e725861776dbaad351e021c9a4df5a')