summaryrefslogtreecommitdiff
path: root/repo/core/coreutils.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-10-06 23:29:58 +0100
committerdavidovski <david@davidovski.xyz>2021-10-06 23:29:58 +0100
commit7ff38024bec68fe70fb6eec0f5cd16188507558f (patch)
treed9f366b28b7d31ddbe3057669474f58962541a68 /repo/core/coreutils.xibuild
parent76a1447eb1599f23165806b4ead10c5294039d05 (diff)
added all lfs packages
Diffstat (limited to 'repo/core/coreutils.xibuild')
-rw-r--r--repo/core/coreutils.xibuild22
1 files changed, 22 insertions, 0 deletions
diff --git a/repo/core/coreutils.xibuild b/repo/core/coreutils.xibuild
new file mode 100644
index 0000000..252bd90
--- /dev/null
+++ b/repo/core/coreutils.xibuild
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+DEPS=(glibc acl attr gmp libcap openssl)
+
+SOURCE=https://ftp.gnu.org/gnu/coreutils/coreutils-9.0.tar.xz
+DESC="The GNU coreutilities"
+
+build () {
+ autoreconf -fiv
+
+ FORCE_UNSAFE_CONFIGURE=1 ./configure \
+ --prefix=/usr \
+ --enable-no-install-program=kill,uptime
+ make
+ make DESTDIR=$PKG_DEST install
+}
+
+package () {
+ mv -v $PKG_DEST/usr/bin/chroot $PKG_DEST/usr/sbin
+ mv -v $PKG_DEST/usr/share/man/man1/chroot.1 $PKG_DEST/usr/share/man/man8/chroot.8
+ sed -i 's/"1"/"8"/' $PKG_DEST/usr/share/man/man8/chroot.8
+}