From 10f53cd3dd45d3b33ee2cd9cf6ed9e3c1e34d9f9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 15 Jan 2018 01:13:59 +0100 Subject: [PATCH] Add diffutils package Signed-off-by: David Oberhollenzer --- cfg/alix/SQUASHFS | 1 + cfg/rpi3/SQUASHFS | 1 + pkg/diffutils/build | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100755 pkg/diffutils/build diff --git a/cfg/alix/SQUASHFS b/cfg/alix/SQUASHFS index b5f0a6f..f9046e6 100644 --- a/cfg/alix/SQUASHFS +++ b/cfg/alix/SQUASHFS @@ -9,3 +9,4 @@ xz gzip bzip2 tar +diffutils diff --git a/cfg/rpi3/SQUASHFS b/cfg/rpi3/SQUASHFS index 62c24de..3c6c1a0 100644 --- a/cfg/rpi3/SQUASHFS +++ b/cfg/rpi3/SQUASHFS @@ -12,3 +12,4 @@ xz gzip bzip2 tar +diffutils diff --git a/pkg/diffutils/build b/pkg/diffutils/build new file mode 100755 index 0000000..6ca813d --- /dev/null +++ b/pkg/diffutils/build @@ -0,0 +1,28 @@ +VERSION="3.6" +SRCDIR="diffutils-${VERSION}" +TARBALL="${SRCDIR}.tar.xz" +URL="https://ftp.gnu.org/gnu/diffutils/" +SHA256SUM="d621e8bdd4b573918c8145f7ae61817d1be9deb4c8d2328a65cea8e11d783bd6" + +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" +}