# Maintainer: Giancarlo Razzolini # Contributor: Bartłomiej Piotrowski # Contributor: Dave Reisner # Contributor: Thomas Bächler # ALARM: Kevin Mihelich # - removed -mtune, changed -march to v7/v8 compat pkgname=mkinitcpio-busybox pkgver=1.34.1 pkgrel=1.1 pkgdesc='Base initramfs tools' arch=(x86_64) url="https://www.busybox.net/" license=(GPL) depends=(glibc libxcrypt) options=(!buildflags) source=(https://busybox.net/downloads/busybox-$pkgver.tar.bz2{,.sig} config) sha256sums=('415fbd89e5344c96acf449d94a6f956dbed62e18e835fc83e064db33a34bd549' 'SKIP' 'bdd0e6737d643b5d812f5dbbe54d4b8c070f322145f0235e7ac6ee368a1b184a') validpgpkeys=('C9E9416F76E610DBD09D040F47B70C55ACC9965B') # Denis Vlasenko prepare() { cd "busybox-$pkgver" if [ ${CARCH} = "aarch64" ]; then ARMCARCH="armv8-a" elif [ ${CARCH} = "armv7h" ]; then ARMCARCH="armv7-a -mfloat-abi=hard -mfpu=neon" fi local safeflags="-march=${ARMCARCH} -Os -pipe -fno-strict-aliasing" # use make oldconfig for updating the config file sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="'"$safeflags"'"|' "$srcdir/config" > .config } build() { # reproducible build export KCONFIG_NOTIMESTAMP=1 make -C "busybox-$pkgver" } package() { install -Dm755 "$srcdir/busybox-$pkgver/busybox" "$pkgdir/usr/lib/initcpio/busybox" }