summaryrefslogtreecommitdiff
path: root/repo/toybox/toybox.xibuild
blob: 5eb27ad5ed646359e4219543a176688ced7ed588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh

NAME="toybox"
DESC="A BSD-licensed alternative to busybox"

MAKEDEPS="linux-headers tsort"

# depend on mising utilities from other providers (ie sbase)
DEPS="tsort"

PKG_VER=0.8.8
SOURCE="https://landley.net/toybox/downloads/toybox-$PKG_VER.tar.gz"
ADDITIONAL="
config
"

tools=" install basename cat chgrp chown chmod cksum cmp comm cp mv cut date diff df dirname du echo env expand false find file getconf head iconv id groups logname whoami kill killall5 link ln ls mkdir mkfifo nice nl nohup od paste printf iotop pwd rm rmdir sed sleep sort split strings tail tee test time touch true tty ulimit arch uname uniq unlink uudecode uuencode wc who xargs ascii unicode base32 fstype blockdev chroot dos2unix unix2dos factor fmt hexedit printenv readlink realpath sha3sum shred stat tac nproc timeout truncate usleep w which md5sum sha1sum sha224sum sha256sum sha384sum sha512sum mknod mktemp seq sync tr dd"

prepare () {
    make defconfig
    #mv config .config
}

build() {
    for tool in $tools; do
        echo "MAKING $tool"
        scripts/single.sh $tool || return 1
    done
}

#check() {
    #for tool in $tools; do
        #make test_$tool || return 1
    #done
#}

package() {
    for tool in $tools; do
        install -Dm755 $tool $PKG_DEST/usr/bin/$tool || return 1
        #install -Dm755 $tool $PKG_DEST/usr/share/man/man1/$tool.1 || return 1
    done
}