summaryrefslogtreecommitdiff
path: root/testing/mkinitcpio-busybox/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mkinitcpio-busybox/PKGBUILD')
-rw-r--r--testing/mkinitcpio-busybox/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/mkinitcpio-busybox/PKGBUILD b/testing/mkinitcpio-busybox/PKGBUILD
new file mode 100644
index 000000000..4861c2f33
--- /dev/null
+++ b/testing/mkinitcpio-busybox/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 141095 2011-10-23 18:50:38Z dreisner $
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+# Maintainer: Thomas Bächler <thomas@archlinux.org>
+
+pkgname=mkinitcpio-busybox
+pkgver=1.19.2
+pkgrel=1
+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=('ea7ec9b6df70b8c528f4a2b6300e9913431c7223308fb08dfafa7508d75a0cb9'
+ '21ae2cd21e33ba1ef9500a9b14273579fc554bf995cfd7907fb3fe94fc162cf8')
+
+build() {
+ cd "$srcdir/busybox-$pkgver"
+
+ local safeflags="${CARCH/_/-} -mtune=generic -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/lib/initcpio/busybox"
+}
+
+# vim:set ts=2 sw=2 et: