2015-03-15 16:55:07 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Contributor: Jens Pranaitis <jens@jenux.homelinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - don't build with musl-gcc
|
|
|
|
|
|
|
|
pkgname=busybox
|
2018-02-19 16:13:06 +00:00
|
|
|
pkgver=1.28.1
|
2017-07-19 12:29:02 +00:00
|
|
|
pkgrel=1
|
2015-03-15 16:55:07 +00:00
|
|
|
pkgdesc="Utilities for rescue and embedded systems"
|
2018-02-19 16:13:06 +00:00
|
|
|
arch=("x86_64")
|
2017-01-05 14:34:24 +00:00
|
|
|
url="https://www.busybox.net"
|
2015-03-15 16:55:07 +00:00
|
|
|
license=('GPL')
|
|
|
|
makedepends=("make" "gcc" "sed" "ncurses")
|
|
|
|
install=busybox.install
|
|
|
|
source=("$url/downloads/$pkgname-$pkgver.tar.bz2"
|
2016-08-15 12:24:59 +00:00
|
|
|
"config")
|
2018-02-19 16:13:06 +00:00
|
|
|
sha256sums=('98fe1d3c311156c597cd5cfa7673bb377dc552b6fa20b5d3834579da3b13652e'
|
|
|
|
'5ac1b35aa9fee3be15a4ce10e533de35ea9e51f888186a45222e102f35c36bc6')
|
2015-03-15 16:55:07 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2017-01-05 14:34:24 +00:00
|
|
|
cp "$srcdir"/config .config
|
2015-03-15 16:55:07 +00:00
|
|
|
sed '1,1i#include <sys/resource.h>' -i include/libbb.h
|
|
|
|
# if you want to run menuconfig uncomment the following line:
|
|
|
|
# make menuconfig ; return 1
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2017-01-05 14:34:24 +00:00
|
|
|
install -Dm755 busybox "$pkgdir"/usr/bin/busybox
|
|
|
|
install -Dm644 docs/busybox.1 "$pkgdir"/usr/share/man/man1/busybox.1
|
2016-08-15 12:24:59 +00:00
|
|
|
for doc in BusyBox.html BusyBox.txt; do
|
2017-01-05 14:34:24 +00:00
|
|
|
install -Dm644 docs/$doc "$pkgdir"/usr/share/doc/$pkgname/$doc
|
2016-08-15 12:24:59 +00:00
|
|
|
done
|
2015-03-15 16:55:07 +00:00
|
|
|
}
|