From f96c7491f429db4800e96f742adc4bc8a9d53d69 Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 13 Oct 2025 00:09:28 -0300 Subject: [PATCH] ports: patch --- recipes/patch | 18 ++++++++++++++++++ source-recipes/patch | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 recipes/patch create mode 100644 source-recipes/patch diff --git a/recipes/patch b/recipes/patch new file mode 100644 index 00000000..a9423f31 --- /dev/null +++ b/recipes/patch @@ -0,0 +1,18 @@ +name=patch +revision=1 +from_source=patch +imagedeps="build-essential" +hostdeps="xgcc xbinutils" +deps="base" + +configure() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} +} + +build() { + make -j${parallelism} +} + +package() { + make install DESTDIR="${dest_dir}" +} diff --git a/source-recipes/patch b/source-recipes/patch new file mode 100644 index 00000000..18ebebb1 --- /dev/null +++ b/source-recipes/patch @@ -0,0 +1,10 @@ +name=patch +version=2.8 +source_method=tarball +tarball_url="https://ftpmirror.gnu.org/gnu/patch/patch-${version}.tar.xz" +tarball_sha512=d689d696660a662753e8660792733c3be0a94c76abfe7a28b0f9f70300c3a42d6437d081553a59bfde6e1b0d5ee13ed89be48d0b00b6da2cadbfc14a15ada603 +hostdeps="autoconf automake libtool pkgconfig" + +prepare() { + autoreconf -vfi +}