From 4343a8d8b6c924daa49d1581054db54d46b257c7 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 15 Jan 2018 01:20:43 +0100 Subject: [PATCH] Add findutils package Signed-off-by: David Oberhollenzer --- cfg/alix/SQUASHFS | 1 + cfg/rpi3/SQUASHFS | 1 + pkg/findutils/build | 29 +++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100755 pkg/findutils/build diff --git a/cfg/alix/SQUASHFS b/cfg/alix/SQUASHFS index f9046e6..1dc7721 100644 --- a/cfg/alix/SQUASHFS +++ b/cfg/alix/SQUASHFS @@ -10,3 +10,4 @@ gzip bzip2 tar diffutils +findutils diff --git a/cfg/rpi3/SQUASHFS b/cfg/rpi3/SQUASHFS index 3c6c1a0..eaeb13e 100644 --- a/cfg/rpi3/SQUASHFS +++ b/cfg/rpi3/SQUASHFS @@ -13,3 +13,4 @@ gzip bzip2 tar diffutils +findutils diff --git a/pkg/findutils/build b/pkg/findutils/build new file mode 100755 index 0000000..8733e06 --- /dev/null +++ b/pkg/findutils/build @@ -0,0 +1,29 @@ +VERSION="4.6.0" +SRCDIR="findutils-${VERSION}" +TARBALL="${SRCDIR}.tar.gz" +URL="https://ftp.gnu.org/gnu/findutils/" +SHA256SUM="ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d" + +prepare() { + return +} + +build() { + local SOURCE="$1" + local BUILD="$2" + + $SOURCE/configure --prefix="" --host="$TARGET" \ + --localstatedir=/var/lib/locate + + make -j $NUMJOBS +} + +deploy() { + local SOURCE="$1" + local BUILD="$2" + local DEPLOY="$3" + + make DESTDIR="$DEPLOY" install-strip + + rm -r "$DEPLOY/share" +}