mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
# Contributor: Dave Reisner <dreisner@archlinux.org>
|
|
# Contributor: Thomas Bächler <thomas@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - removed -mtune, changed -march to v7/v8 compat
|
|
|
|
pkgname=mkinitcpio-busybox
|
|
pkgver=1.35.0
|
|
pkgrel=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=('faeeb244c35a348a334f4a59e44626ee870fb07b6884d68c10ae8bc19f83a694'
|
|
'SKIP'
|
|
'fe7bd3c7150c25a8ad24190d305a012b84766f34847a7efc7126e19261b0c711')
|
|
validpgpkeys=('C9E9416F76E610DBD09D040F47B70C55ACC9965B') # Denis Vlasenko <vda.linux@googlemail.com>
|
|
|
|
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"
|
|
}
|