diff --git a/cfg/alix/SQUASHFS b/cfg/alix/SQUASHFS index 32747a6..47ab2f5 100644 --- a/cfg/alix/SQUASHFS +++ b/cfg/alix/SQUASHFS @@ -12,3 +12,4 @@ tar diffutils findutils sed +gawk diff --git a/cfg/rpi3/SQUASHFS b/cfg/rpi3/SQUASHFS index 6c9fe6f..4e9fdf6 100644 --- a/cfg/rpi3/SQUASHFS +++ b/cfg/rpi3/SQUASHFS @@ -15,3 +15,4 @@ tar diffutils findutils sed +gawk diff --git a/pkg/gawk/build b/pkg/gawk/build new file mode 100755 index 0000000..9e3930a --- /dev/null +++ b/pkg/gawk/build @@ -0,0 +1,31 @@ +VERSION="4.2.0" +SRCDIR="gawk-${VERSION}" +TARBALL="${SRCDIR}.tar.xz" +URL="https://ftp.gnu.org/gnu/gawk/" +SHA256SUM="d4f3cd31c001fd0ed52832d4fbfbdfeaa38ad541c182f80ff8fdf87324a6a9f2" + +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 "$DEPLOY/bin/gawk-$VERSION" + rm -r "$DEPLOY/include" + rm -r "$DEPLOY/share/info" + rm -r "$DEPLOY/share/man" +}