38 lines
1.4 KiB
Text
Executable file
38 lines
1.4 KiB
Text
Executable file
# Description: Utilities for showing and setting the basic system characteristics
|
|
# URL: https://www.gnu.org/software/coreutils/
|
|
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
|
|
# Depends on:
|
|
|
|
name=coreutils
|
|
version=9.0
|
|
release=1
|
|
source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz
|
|
coreutils-i18n-1.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# fixes POSIX requires that programs from Coreutils recognize
|
|
# character boundaries correctly even in multibyte locales
|
|
#patch -Np1 -i ../coreutils-i18n-1.patch
|
|
sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk
|
|
|
|
autoreconf -fiv
|
|
FORCE_UNSAFE_CONFIGURE=1 \
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-no-install-program=kill,uptime
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
mkdir -pv $PKG/{bin,usr/sbin}
|
|
mv -v $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $PKG/bin
|
|
mv -v $PKG/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} $PKG/bin
|
|
mv -v $PKG/usr/bin/{rmdir,stty,sync,true,uname} $PKG/bin
|
|
mv -v $PKG/usr/bin/chroot $PKG/usr/sbin
|
|
mkdir -pv $PKG/usr/share/man/man8
|
|
mv -v $PKG/usr/share/man/man1/chroot.1 $PKG/usr/share/man/man8/chroot.8
|
|
sed -i s/\"1\"/\"8\"/1 $PKG/usr/share/man/man8/chroot.8
|
|
|
|
mv -v $PKG/usr/bin/{head,sleep,nice} $PKG/bin
|
|
}
|