1 # Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Dave Reisner <dreisner@archlinux.org>
4 # Contributor: Thomas Bächler <thomas@archlinux.org>
6 pkgname=mkinitcpio-busybox
9 pkgdesc='Base initramfs tools'
11 url="https://www.busybox.net/"
13 depends=(glibc libxcrypt)
15 source=(https://busybox.net/downloads/busybox-$pkgver.tar.bz2{,.sig}
17 sha256sums=('415fbd89e5344c96acf449d94a6f956dbed62e18e835fc83e064db33a34bd549'
19 'bdd0e6737d643b5d812f5dbbe54d4b8c070f322145f0235e7ac6ee368a1b184a')
20 validpgpkeys=('C9E9416F76E610DBD09D040F47B70C55ACC9965B') # Denis Vlasenko <vda.linux@googlemail.com>
25 local safeflags="-march=${CARCH/_/-} -mtune=generic -Os -pipe -fno-strict-aliasing"
27 # use make oldconfig for updating the config file
28 sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="'"$safeflags"'"|' "$srcdir/config" > .config
33 export KCONFIG_NOTIMESTAMP=1
34 make -C "busybox-$pkgver"
38 install -Dm755 "$srcdir/busybox-$pkgver/busybox" "$pkgdir/usr/lib/initcpio/busybox"