PKGBUILDs/community/busybox/PKGBUILD

41 lines
1 KiB
Bash
Raw Normal View History

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-05-23 00:00:17 +00:00
pkgver=1.28.4
2018-05-27 16:56:38 +00:00
pkgrel=2
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')
2018-05-23 00:00:17 +00:00
makedepends=("ncurses")
2015-03-15 16:55:07 +00:00
source=("$url/downloads/$pkgname-$pkgver.tar.bz2"
2018-05-23 00:00:17 +00:00
"config")
sha256sums=('e3c14a3699dc7e82fed397392957afc78e37bdf25398ac38ead6e84621b2ae6a'
2018-05-27 16:56:38 +00:00
'7a067356b7e0f85ce1ba0aa6d2fd4f14de14872e80f7dd2f3cedd7e31d6c5a5b')
2015-03-15 16:55:07 +00:00
build() {
cd "$srcdir/$pkgname-$pkgver"
2018-05-23 00:00:17 +00:00
2017-01-05 14:34:24 +00:00
cp "$srcdir"/config .config
2018-05-04 01:37:14 +00:00
# reproducible build
export KCONFIG_NOTIMESTAMP=1
2015-03-15 16:55:07 +00:00
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
2018-05-23 00:00:17 +00:00
install -Dm0755 busybox "$pkgdir"/usr/bin/busybox
# docs
2017-01-05 14:34:24 +00:00
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
}