blob: 487558d241bc492f6b3e11df8d0b07ed3e54470c (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_FILENAME="bsdutils-13.2.tar.gz"
SRC_HASH="4547990309afe686c6f36c2a4f7ac5806e0064b182dd1f93f52dda7661979a3c"
SRC_NAME="bsdutils"
SRC_URL="https://codeberg.org/dcantrell/bsdutils/archive/v13.2.tar.gz"
SRC_VERSION="13.2"
# TODO: Determine which utilities should be moved to bsdutils and which should
# stick with Busybox. ~ahill
# [
# bc
# cat
# chgrp
# chmod
# chown
# chroot
# cksum
# comm
# cp
# csplit
# cut
# date
# dc
# dd
# dirname
# du
# echo
# env
# expand
# expr
# factor
# false
# fmt
# fold
# groups
# head
# hexdump
# hostname
# id
# install
# join
# kill
# ln
# logname
# ls
# mkdir
# mkfifo
# mknod
# mktemp
# mv
# nice
# nl
# nohup
# paste
# pathchk
# pr
# printenv
# printf
# pwd
# readlink
# realpath
# rm
# rmdir
# sed
# seq
# sleep
# split
# stat
# stdbuf
# stty
# sync
# tail
# tee
# test
# timeout
# touch
# tr
# true
# truncate
# tsort
# tty
# uname
# unexpand
# uniq
# unlink
# users
# which
# who
# whoami
# xargs
# yes
build() {
tar xf ../$SRC_FILENAME
cd bsdutils/
# NOTE: Before we start building bsdutils, we tell it *not* to build df/wc,
# since that requires an additional dependency (libxo) and we already
# have BusyBox's version of df and wc to replace it. ~ahill
sed -i "/libxo/d" meson.build
sed -i "/'df'/d" src/meson.build
sed -i "/'wc'/d" src/meson.build
# NOTE: Apparently, rpmatch is REQUIRED, despite meson.build stating that it
# is optional. Disabling find in favor of BusyBox to prevent another
# dependency from being introduced. ~ahill
sed -i "/'find'/d" src/meson.build
# NOTE: Finally, we have a *lot* of duplicate commands between bsdutils and
# Busybox. Busybox takes priority unless the bsdutils version has more
# functionality. ~ahill
# ...
muon setup $TT_MESON_COMMON build
muon samu -C build
}
clean() {
rm -rf bsdutils/
}
package() {
cd bsdutils/
muon -C build install -d $TT_INSTALLDIR
}
|