pkgs/busybox/PKGBUILD

46 lines
998 B
Text
Raw Permalink Normal View History

2023-12-05 04:47:04 +00:00
# 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"
2023-12-08 02:05:38 +00:00
license=("GPL-2.0-ONLY")
source=(
"$url/downloads/busybox-$pkgver.tar.bz2"
"config"
)
sha256sums=(
"b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314"
2023-12-11 13:18:00 +00:00
"690096523071b0074fc62db2c6308b2853d7a2a081b7103c2117cd4f33f98d9f"
2023-12-08 02:05:38 +00:00
)
2023-12-05 04:47:04 +00:00
build() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
cp $srcdir/config .config
2023-12-08 20:54:14 +00:00
2023-12-08 02:05:38 +00:00
# reproducible build
export KCONFIG_NOTIMESTAMP=1
2023-12-08 20:54:14 +00:00
make CC=cc HOSTCC=cc
2023-12-05 04:47:04 +00:00
}
package() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
2023-12-08 20:54:14 +00:00
make CC=cc HOSTCC=cc install
2023-12-08 02:05:38 +00:00
# Move all applets into /usr/bin
2023-12-08 03:28:18 +00:00
mv $pkgdir/bin/* $pkgdir/usr/bin/
mv $pkgdir/sbin/* $pkgdir/usr/bin/
mv $pkgdir/usr/sbin/* $pkgdir/usr/bin/
rm -rf $pkgdir/{bin,sbin,usr/sbin}
2023-12-08 02:05:38 +00:00
# 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
2023-12-05 04:47:04 +00:00
}