commit 3e36122

chld  ·  2026-08-30 16:16:34 +0000 UTC
parent 89b6210
toybox: revive with bash
3 files changed,  +20, -0
+2, -0
1@@ -0,0 +1,2 @@
2+.deps
3+.linux-headers
+6, -0
1@@ -0,0 +1,6 @@
2+name: toybox
3+description: gnuslop busybox alternative
4+license: 0BSD
5+upstream: https://github.com/landley/toybox
6+version: git
7+maintainer: chld
+12, -0
 1@@ -0,0 +1,12 @@
 2+#!/bin/sh -ue
 3+NAME=toybox
 4+VERSION=git
 5+RELEASE=1
 6+SOURCE="https://github.com/landley/${NAME}.git"
 7+BUILD_STYLE=gmake
 8+build(){
 9+    gmake CC='cc -static' CFLAGS='-static' LDFLAGS='-static' defconfig || die "defconfig failed"
10+    gmake CC='cc -static' CFLAGS='-static' LDFLAGS='-static' PREFIX="$PKG" || die "gmake failed"
11+    gmake CC='cc -static' CFLAGS='-static' LDFLAGS='-static' DESTDIR="$PKG" install || die "install failed"
12+}
13+. ${0%/*}/../../libsh/libdmake.sh