summaryrefslogtreecommitdiff
path: root/repo/toybox/toybox.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-11-04 02:29:27 +0000
committerdavidovski <david@davidovski.xyz>2022-11-04 02:29:27 +0000
commit63add57ef96f10f464fc1bf7c821d2281b39edeb (patch)
treedf6ff34494316e6e23d206dd81367f0a5a3ead73 /repo/toybox/toybox.xibuild
parent9cc8533c28967439cf57e6d4d0cac95d53b5ac67 (diff)
Using toybox instead of sbase for posix
Diffstat (limited to 'repo/toybox/toybox.xibuild')
-rw-r--r--repo/toybox/toybox.xibuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/repo/toybox/toybox.xibuild b/repo/toybox/toybox.xibuild
new file mode 100644
index 0000000..da2f03a
--- /dev/null
+++ b/repo/toybox/toybox.xibuild
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+NAME="toybox"
+DESC="A BSD-licensed alternative to busybox"
+
+MAKEDEPS="linux-headers"
+
+PKG_VER=0.8.8
+SOURCE="https://landley.net/toybox/downloads/toybox-$PKG_VER.tar.gz"
+ADDITIONAL="
+config
+"
+
+tools=" basename cat chgrp chown chmod cksum crc32 cmp comm cp mv install cpio cut date df dirname du echo env expand false file find getconf grep egrep fgrep head iconv id groups logname whoami kill killall5 link ln logger ls mkdir mkfifo nice nl nohup od paste patch printf ps top iotop pgrep pkill pwd renice rm rmdir sed sleep sort sort_float split strings tail tar tee test test_glue time touch true tty ulimit arch linux32 uname uniq unlink uudecode uuencode wc who xargs ascii unicode base32 fstype blockdev chroot count dos2unix unix2dos factor fmt hexedit printenv readlink realpath rev sha3sum shred stat tac nproc taskset timeout truncate usleep uuidgen w which wget md5sum sha1sum sha224sum sha256sum sha384sum sha512sum mknod mktemp seq sync "
+
+prepare () {
+ mv config .config
+}
+
+build() {
+ for tool in $tools; do
+ make $tool
+ done
+}
+
+check() {
+ for tool in $tools; do
+ make test_$tool
+ done
+}
+
+package() {
+ for tool in $tools; do
+ install -Dm755 $tool $PKG_DEST/usr/bin/$tool
+ done
+}
+