From 695e01e09f685705f269116f32496214a0737b6d Mon Sep 17 00:00:00 2001 From: Matheus Date: Wed, 29 May 2024 15:46:06 -0300 Subject: [PATCH] ports: file --- recipes/file | 16 ++++++++++++++++ source-recipes/file | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 recipes/file create mode 100644 source-recipes/file diff --git a/recipes/file b/recipes/file new file mode 100644 index 00000000..56583b77 --- /dev/null +++ b/recipes/file @@ -0,0 +1,16 @@ +name=file +revision=1 +from_source=file +imagedeps="base-devel" +hostdeps="xgcc xbinutils" +deps="mlibc" + +build() { + cp -rp ${source_dir}/* . + ./configure --host=x86_64-astral --prefix=${prefix} + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/source-recipes/file b/source-recipes/file new file mode 100644 index 00000000..8bc75f8c --- /dev/null +++ b/source-recipes/file @@ -0,0 +1,9 @@ +name=file +version=45 +source_method=tarball +tarball_url="https://github.com/file/file/archive/refs/tags/FILE5_${version}.tar.gz" +tarball_sha512="fdd4c5d13d5ea1d25686c76d8ebc3252c54040c4871e3f0f623c4548b3841795d4e36050292a9453eedf0fbf932573890e9d6ac9fa63ccf577215598ae84b9ea" +hostdeps="autoconf automake pkgconfig libtool" +regenerate() { + autoreconf -fvi +}