summaryrefslogtreecommitdiff
path: root/sources/toybox/toybox.spec
diff options
context:
space:
mode:
authorAlexander Hill <ahill@breadpudding.dev>2025-12-21 19:50:14 -0500
committerAlexander Hill <ahill@breadpudding.dev>2025-12-21 19:50:14 -0500
commita6920abf746e05b66bc66ca74d47e19e9a0bc62c (patch)
treefe23f7d0cfc26ae8753e8d04ac40c6066ad0339c /sources/toybox/toybox.spec
parente93c2168f531e65352352afe9ba590339014f5f6 (diff)
Replaced busybox with toyboxtreetap
Diffstat (limited to 'sources/toybox/toybox.spec')
-rw-r--r--sources/toybox/toybox.spec28
1 files changed, 28 insertions, 0 deletions
diff --git a/sources/toybox/toybox.spec b/sources/toybox/toybox.spec
new file mode 100644
index 0000000..efe46e3
--- /dev/null
+++ b/sources/toybox/toybox.spec
@@ -0,0 +1,28 @@
+# Maintainer: Alexander Hill <ahill@breadpudding.dev>
+SRC_HASH="9d4c124d7d731a2db399f6278baa2b42c2e3511f610c6ad30cc3f1a52581334b"
+SRC_NAME="toybox"
+SRC_PATCHES="
+f4dda4662bead0679256f54b1770faa57c1bfea9462778edf537644d1e5aa3b0 .config
+"
+SRC_URL="https://landley.net/toybox/downloads/toybox-0.8.13.tar.gz"
+SRC_VERSION="0.8.13"
+
+build() {
+ tar xf ../$SRC_FILENAME
+ cd toybox-$SRC_VERSION/
+ # NOTE: make defconfig seems to do more than simply configure toybox. We'll
+ # run it to set *something* up, then overwrite the configuration with
+ # what I saved before. ~ahill
+ make defconfig
+ cp ../.config .
+ make -j $TT_PROCS
+}
+
+clean() {
+ rm -rf toybox-$SRC_VERSION/
+}
+
+package() {
+ cd toybox-$SRC_VERSION/
+ PREFIX=$TT_INSTALLDIR/bin ./scripts/install.sh --symlink
+} \ No newline at end of file