mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
314d3a38c6
mkinitcpio-busybox: bump to 1.19.4 mkinitcpio: bump to 0.8.3
37 lines
993 B
Bash
37 lines
993 B
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=mkinitcpio-busybox
|
|
pkgver=1.19.4
|
|
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=('9b853406da61ffb59eb488495fe99cbb7fb3dd29a31307fcfa9cf070543710ee'
|
|
'28dc775e12c40718b48e1dd6a63544ca9d8aa128f786577b27e4df73e1e8766a')
|
|
|
|
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/lib/initcpio/busybox"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|