46 lines
943 B
Bash
46 lines
943 B
Bash
# Maintainer: Daryl Ronningen <relms@relms.dev>
|
|
|
|
pkgname=busybox
|
|
pkgver=1.36.1
|
|
pkgrel=1
|
|
pkgdesc="Utilities for rescue and embedded systems"
|
|
arch=("x86_64")
|
|
url="https://www.busybox.net"
|
|
license=("GPL-2.0-ONLY")
|
|
source=(
|
|
"$url/downloads/busybox-$pkgver.tar.bz2"
|
|
"config"
|
|
)
|
|
sha256sums=(
|
|
"b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314"
|
|
"5c5664f75ae5649c9e55f0d3a52fad4e67428f1accf37e555af7f28efbd566e1"
|
|
)
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
|
|
cp $srcdir/config .config
|
|
# reproducible build
|
|
export KCONFIG_NOTIMESTAMP=1
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
|
|
make install
|
|
|
|
# Move all applets into /usr/bin
|
|
cd $pkgdir
|
|
mv bin/* usr/bin/
|
|
mv sbin/* usr/bin/
|
|
mv usr/sbin/* usr/bin/
|
|
rm -rf bin/ sbin/ usr/sbin/
|
|
cd $pkgname-$pkgver
|
|
|
|
# docs
|
|
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
|
|
}
|