# $Id$ # Maintainer: Sergej Pupykin # Contributor: Jens Pranaitis # ALARM: Kevin Mihelich # - don't build with musl-gcc pkgname=busybox pkgver=1.26.2 pkgrel=1 pkgdesc="Utilities for rescue and embedded systems" arch=("i686" "x86_64") url="https://www.busybox.net" license=('GPL') makedepends=("make" "gcc" "sed" "ncurses") install=busybox.install source=("$url/downloads/$pkgname-$pkgver.tar.bz2" "config") sha256sums=('da3e44913fc1a9c9b7c5337ea5292da518683cbff32be630777f565d6036af16' 'ee3f947d8194a85b0adc150db8000d09c3fc31827ab259954a2c1ea9e646df6c') build() { cd "$srcdir/$pkgname-$pkgver" cp "$srcdir"/config .config sed '1,1i#include ' -i include/libbb.h # if you want to run menuconfig uncomment the following line: # make menuconfig ; return 1 make } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm755 busybox "$pkgdir"/usr/bin/busybox install -Dm644 docs/busybox.1 "$pkgdir"/usr/share/man/man1/busybox.1 for doc in BusyBox.html BusyBox.txt; do install -Dm644 docs/$doc "$pkgdir"/usr/share/doc/$pkgname/$doc done }