summaryrefslogtreecommitdiff
path: root/testing/mkinitcpio-busybox/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-15 22:39:31 +0000
committerroot <root@rshg047.dnsready.net>2011-05-15 22:39:31 +0000
commita45aa8f19ea32f45610dafabfc06c8b7d1ed5cfe (patch)
tree3855efd25da6fab2bbaf889a2090a44a9faab93f /testing/mkinitcpio-busybox/PKGBUILD
parente69c538fc7af5a9861c7688dd15913082d978180 (diff)
Sun May 15 22:39:30 UTC 2011
Diffstat (limited to 'testing/mkinitcpio-busybox/PKGBUILD')
-rw-r--r--testing/mkinitcpio-busybox/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/mkinitcpio-busybox/PKGBUILD b/testing/mkinitcpio-busybox/PKGBUILD
new file mode 100644
index 000000000..e58f87add
--- /dev/null
+++ b/testing/mkinitcpio-busybox/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 123921 2011-05-14 11:29:02Z thomas $
+# Maintainer: Thomas Bächler <thomas@archlinux.org>
+pkgname=mkinitcpio-busybox
+pkgver=1.18.4
+pkgrel=1
+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
+ config)
+sha256sums=('4d24d37bd6f1bd153e8cf9a984ec2f32f18464f73ca535e2cc2e8be9694097fa'
+ 'dd6dca08fbc335f1394e0f1b619df6895349c759d0c6e43456aed411e16d4194')
+
+build() {
+ cd "${srcdir}/busybox-${pkgver}"
+
+ unset CFLAGS CXXFLAGS
+ if [ ${CARCH} = "x86_64" ]; then
+ sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=x86-64 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
+ else
+ sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=i686 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
+ fi
+ make
+}
+
+package() {
+ install -D -m755 "${srcdir}/busybox-${pkgver}"/busybox "${pkgdir}/lib/initcpio/busybox"
+}
+# vim:set ts=2 sw=2 et: