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..32cb89cd7
--- /dev/null
+++ b/testing/mkinitcpio-busybox/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 160402 2012-06-01 18:19:59Z dreisner $
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+# Maintainer: Thomas Bächler <thomas@archlinux.org>
+
+pkgname=mkinitcpio-busybox
+pkgver=1.20.1
+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=('3e515d8abefd8583ebabffdcfccecb3b8deacf2cef7c69ab1d8755a012ec68c9'
+ 'd8064ed6ec21868e4afe057445e2d852b353abd595132cb1ca3ba345988772f0')
+
+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/usr/lib/initcpio/busybox"
+}
+
+# vim:set ts=2 sw=2 et: