From 944a1c7f6582f0b2c83e904ac742aa5c3915df5c Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 15 Jan 2018 01:32:42 +0100 Subject: [PATCH] Add sed package Signed-off-by: David Oberhollenzer --- cfg/alix/SQUASHFS | 1 + cfg/rpi3/SQUASHFS | 1 + pkg/sed/build | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100755 pkg/sed/build diff --git a/cfg/alix/SQUASHFS b/cfg/alix/SQUASHFS index 1dc7721..32747a6 100644 --- a/cfg/alix/SQUASHFS +++ b/cfg/alix/SQUASHFS @@ -11,3 +11,4 @@ bzip2 tar diffutils findutils +sed diff --git a/cfg/rpi3/SQUASHFS b/cfg/rpi3/SQUASHFS index eaeb13e..6c9fe6f 100644 --- a/cfg/rpi3/SQUASHFS +++ b/cfg/rpi3/SQUASHFS @@ -14,3 +14,4 @@ bzip2 tar diffutils findutils +sed diff --git a/pkg/sed/build b/pkg/sed/build new file mode 100755 index 0000000..8835d27 --- /dev/null +++ b/pkg/sed/build @@ -0,0 +1,28 @@ +VERSION="4.4" +SRCDIR="sed-${VERSION}" +TARBALL="${SRCDIR}.tar.xz" +URL="https://ftp.gnu.org/gnu/sed/" +SHA256SUM="cbd6ebc5aaf080ed60d0162d7f6aeae58211a1ee9ba9bb25623daa6cd942683b" + +prepare() { + return +} + +build() { + local SOURCE="$1" + local BUILD="$2" + + $SOURCE/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" +}