aboutsummaryrefslogtreecommitdiff
path: root/community/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'community/coreutils')
-rwxr-xr-xcommunity/coreutils/build16
-rw-r--r--community/coreutils/checksums3
-rw-r--r--community/coreutils/meta3
-rw-r--r--community/coreutils/patches/busybox-style.patch16
-rw-r--r--community/coreutils/sources2
-rw-r--r--community/coreutils/version1
6 files changed, 41 insertions, 0 deletions
diff --git a/community/coreutils/build b/community/coreutils/build
new file mode 100755
index 00000000..c58225c9
--- /dev/null
+++ b/community/coreutils/build
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+patch -p1 < busybox-style.patch
+
+export LDFLAGS="$LDFLAGS -static"
+
+./configure \
+ --prefix=/usr \
+ --enable-single-binary=symlinks \
+ --with-packager="Carbs Linux" \
+ --without-libgmp \
+ --disable-libcap \
+ --disable-nls
+
+make
+make DESTDIR="$1" install
diff --git a/community/coreutils/checksums b/community/coreutils/checksums
new file mode 100644
index 00000000..cb8e33a8
--- /dev/null
+++ b/community/coreutils/checksums
@@ -0,0 +1,3 @@
+%BLAKE3
+a1406461b3f8de1078931aea2f7d0ba8f60d4e0e1481bf5540ddaad3d7d9b569 coreutils-9.4.tar.xz
+3094ae77f6bba5766dae1498668ac0f3dabe8faa40d77ab6762c69490fe2b7b4 busybox-style.patch
diff --git a/community/coreutils/meta b/community/coreutils/meta
new file mode 100644
index 00000000..dd22c731
--- /dev/null
+++ b/community/coreutils/meta
@@ -0,0 +1,3 @@
+description: GNU core utilities
+license: GPL-3.0-or-later
+maintainer: Cem Keylan <cem@carbslinux.org>
diff --git a/community/coreutils/patches/busybox-style.patch b/community/coreutils/patches/busybox-style.patch
new file mode 100644
index 00000000..fbd7f3b3
--- /dev/null
+++ b/community/coreutils/patches/busybox-style.patch
@@ -0,0 +1,16 @@
+This adds a busybox-style usage that a lot of people are used to, to the
+coreutils(1) program.
+--- a/src/coreutils.c Wed Jul 5 13:09:55 2023
++++ b/src/coreutils.c Wed Sep 6 16:21:00 2023
+@@ -169,6 +169,11 @@
+ else
+ arg_name = prog_name;
+ }
++ else if (!STRPREFIX (argv[1], "-"))
++ {
++ nskip = 1;
++ arg_name = prog_name = argv[1];
++ }
+
+ if (nskip)
+ {
diff --git a/community/coreutils/sources b/community/coreutils/sources
new file mode 100644
index 00000000..1602df69
--- /dev/null
+++ b/community/coreutils/sources
@@ -0,0 +1,2 @@
+https://ftp.gnu.org/gnu/coreutils/coreutils-9.4.tar.xz
+patches/busybox-style.patch
diff --git a/community/coreutils/version b/community/coreutils/version
new file mode 100644
index 00000000..470bc28b
--- /dev/null
+++ b/community/coreutils/version
@@ -0,0 +1 @@
+9.4 1