2019-12-13 01:20:57 +00:00
|
|
|
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
|
|
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
2016-12-29 14:12:28 +00:00
|
|
|
# Contributor: Dave Reisner <dreisner@archlinux.org>
|
|
|
|
# Contributor: Thomas Bächler <thomas@archlinux.org>
|
2011-01-15 17:41:34 +00:00
|
|
|
|
2012-03-15 16:24:37 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2015-07-09 04:51:31 +00:00
|
|
|
# - removed -mtune, changed -march to v8/v7/v6/v5 compat
|
2011-01-16 05:37:25 +00:00
|
|
|
|
2011-01-15 17:41:34 +00:00
|
|
|
pkgname=mkinitcpio-busybox
|
2021-01-05 14:41:59 +00:00
|
|
|
pkgver=1.32.1
|
2021-01-11 15:25:08 +00:00
|
|
|
pkgrel=2
|
2016-12-29 14:12:28 +00:00
|
|
|
pkgdesc='Base initramfs tools'
|
2018-02-27 13:48:50 +00:00
|
|
|
arch=(x86_64)
|
2019-11-19 02:31:06 +00:00
|
|
|
url="https://www.busybox.net/"
|
2017-06-28 19:50:07 +00:00
|
|
|
license=(GPL)
|
2020-09-04 12:58:04 +00:00
|
|
|
depends=(glibc libxcrypt)
|
2017-06-28 19:50:07 +00:00
|
|
|
options=(!buildflags)
|
2019-03-03 17:51:45 +00:00
|
|
|
source=(https://busybox.net/downloads/busybox-$pkgver.tar.bz2{,.sig}
|
2021-01-11 15:25:08 +00:00
|
|
|
0001-ash-fix-unset_var-pattern-repl.patch
|
2017-06-28 19:50:07 +00:00
|
|
|
config)
|
2021-01-05 14:41:59 +00:00
|
|
|
sha256sums=('9d57c4bd33974140fd4111260468af22856f12f5b5ef7c70c8d9b75c712a0dee'
|
2019-03-03 17:51:45 +00:00
|
|
|
'SKIP'
|
2021-01-11 15:25:08 +00:00
|
|
|
'4e4fb268c51e378a3ad0a12f903a601a136d31cae8b684a51ebabbc9a6cf9250'
|
2021-01-05 14:41:59 +00:00
|
|
|
'81843d10a63f3e29f37560ded54a049b45c8a4b38560bf9489ec4124eead170e')
|
2019-03-03 17:51:45 +00:00
|
|
|
validpgpkeys=('C9E9416F76E610DBD09D040F47B70C55ACC9965B') # Denis Vlasenko <vda.linux@googlemail.com>
|
2011-01-15 17:41:34 +00:00
|
|
|
|
2013-07-26 14:49:51 +00:00
|
|
|
prepare() {
|
|
|
|
cd "busybox-$pkgver"
|
2011-01-15 17:41:34 +00:00
|
|
|
|
2021-01-11 15:25:08 +00:00
|
|
|
patch -Np1 < ../0001-ash-fix-unset_var-pattern-repl.patch
|
|
|
|
|
2015-07-09 04:51:31 +00:00
|
|
|
if [ ${CARCH} = "aarch64" ]; then
|
|
|
|
ARMCARCH="armv8-a"
|
|
|
|
elif [ ${CARCH} = "armv7h" ]; then
|
2012-03-15 16:24:37 +00:00
|
|
|
ARMCARCH="armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16"
|
2012-09-27 12:45:23 +00:00
|
|
|
elif [ ${CARCH} = "armv6h" ]; then
|
|
|
|
ARMCARCH="armv6 -mfloat-abi=hard -mfpu=vfp"
|
2011-02-21 17:11:48 +00:00
|
|
|
else
|
2011-10-29 18:26:32 +00:00
|
|
|
ARMCARCH="armv5te"
|
2011-02-21 17:11:48 +00:00
|
|
|
fi
|
2011-10-29 18:26:32 +00:00
|
|
|
|
2013-07-26 14:49:51 +00:00
|
|
|
local safeflags="-march=${ARMCARCH} -Os -pipe -fno-strict-aliasing"
|
2011-10-29 18:26:32 +00:00
|
|
|
|
2018-02-27 13:48:50 +00:00
|
|
|
sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="'"$safeflags"'"|' "$srcdir/config" > .config
|
2013-07-26 14:49:51 +00:00
|
|
|
}
|
2012-09-27 12:45:23 +00:00
|
|
|
|
2013-07-26 14:49:51 +00:00
|
|
|
build() {
|
2019-03-03 17:51:45 +00:00
|
|
|
# reproducible build
|
|
|
|
export KCONFIG_NOTIMESTAMP=1
|
2013-07-26 14:49:51 +00:00
|
|
|
make -C "busybox-$pkgver"
|
2011-01-15 17:41:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-03-15 16:24:37 +00:00
|
|
|
install -Dm755 "$srcdir/busybox-$pkgver/busybox" "$pkgdir/usr/lib/initcpio/busybox"
|
2011-01-15 17:41:34 +00:00
|
|
|
}
|