core/mkinitcpio-busybox/PKGBUILD

41 lines
1.6 KiB
Bash
Raw Normal View History

2010-05-16 23:08:55 +08:00
# $Id: PKGBUILD 79944 2010-05-09 17:50:54Z thomas $
2010-03-13 23:25:19 +08:00
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=mkinitcpio-busybox
2010-05-16 23:08:55 +08:00
pkgver=1.16.1
pkgrel=3
2010-03-13 23:25:19 +08:00
pkgdesc="base initramfs tools"
arch=('i686' 'x86_64')
url="http://www.busybox.net/"
license=('GPL')
depends=('glibc')
source=(http://busybox.net/downloads/busybox-${pkgver}.tar.bz2
2010-05-16 23:08:55 +08:00
config
loadfont-setfont-optional-psf2-font-support.patch)
sha256sums=('6d45ec8e72ca85516c8669f81267e0fbe11881435983e32532a56b44651dd6c5'
'd629e936941c854e7aa5e1b564d74bde3a1d328f1e0dd30c86a958d2724685ce'
'624d21345cd869c174a3ae1b9cfe23a461ce8b463c7ac4c052726430890c4eb1')
2010-03-13 23:25:19 +08:00
build() {
cd "${srcdir}/busybox-${pkgver}"
2010-05-16 23:08:55 +08:00
# Backport http://git.busybox.net/busybox/commit/?id=8ce1dc03c1b2b61e51527b987579c09c991cc4b2
# to busybox 1.16 to fix https://bugs.archlinux.org/task/19109
patch -p1 -i ../loadfont-setfont-optional-psf2-font-support.patch || return 1
2010-03-13 23:25:19 +08:00
unset CFLAGS CXXFLAGS
2010-05-16 23:08:55 +08:00
# -fno-tree-pta is required to work around a bug in gcc 4.5.0
# A patch is scheduled to be backported to 4.5.1, so we can remove it
# once that is released. Reference: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987
2010-03-13 23:25:19 +08:00
if [ ${CARCH} = "x86_64" ]; then
2010-05-16 23:08:55 +08:00
sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=x86-64 -mtune=generic -O0 -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
2010-03-13 23:25:19 +08:00
else
2010-05-16 23:08:55 +08:00
sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=i686 -mtune=generic -O0 -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
2010-03-13 23:25:19 +08:00
fi
make || return 1
}
package() {
install -D -m755 "${srcdir}/busybox-${pkgver}"/busybox "${pkgdir}/lib/initcpio/busybox"
}
# vim:set ts=2 sw=2 et: