diff --git a/cfg/alix/SQUASHFS b/cfg/alix/SQUASHFS index 33c117e..bcc47b1 100644 --- a/cfg/alix/SQUASHFS +++ b/cfg/alix/SQUASHFS @@ -3,3 +3,4 @@ bash rootfs nano util-linux +grep diff --git a/cfg/rpi3/SQUASHFS b/cfg/rpi3/SQUASHFS index a7c9fa0..8759f18 100644 --- a/cfg/rpi3/SQUASHFS +++ b/cfg/rpi3/SQUASHFS @@ -6,3 +6,4 @@ firmware-rpi3 nano util-linux kmod +grep diff --git a/pkg/grep/build b/pkg/grep/build new file mode 100755 index 0000000..b58d473 --- /dev/null +++ b/pkg/grep/build @@ -0,0 +1,27 @@ +VERSION="3.1" +SRCDIR="grep-${VERSION}" +TARBALL="${SRCDIR}.tar.xz" +URL="https://ftp.gnu.org/gnu/grep/" +SHA256SUM="db625c7ab3bb3ee757b3926a5cfa8d9e1c3991ad24707a83dde8a5ef2bf7a07e" + +prepare() { + return +} + +build() { + local INPUT="$1" + local OUTPUT="$2" + + $INPUT/configure --prefix="" --host="$TARGET" + + make -j $NUMJOBS +} + +deploy() { + local SOURCE="$1" + local BUILD="$2" + local DEPLOY="$3" + + make DESTDIR="$DEPLOY" install-strip + rm -r "$DEPLOY/share" +}