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 +}