2006-02-23 15:26:10 +00:00
|
|
|
# Description: A collection of core GNU utilities
|
2021-09-26 12:55:00 +02:00
|
|
|
# URL: http://www.gnu.org/software/coreutils/
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: libgmp acl libcap
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=coreutils
|
2021-09-26 12:55:00 +02:00
|
|
|
version=9.0
|
2016-01-21 12:23:08 +01:00
|
|
|
release=1
|
2017-03-13 12:03:38 +01:00
|
|
|
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz
|
2021-09-26 12:55:00 +02:00
|
|
|
coreutils-uname.patch
|
|
|
|
chmod.c.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2021-09-26 12:55:00 +02:00
|
|
|
cd $name-$version
|
2008-01-23 11:33:42 +01:00
|
|
|
|
2021-09-26 12:55:00 +02:00
|
|
|
# https://bugs.gnu.org/50784
|
|
|
|
patch -p1 -i $SRC/chmod.c.patch
|
2008-01-23 11:33:42 +01:00
|
|
|
|
2021-09-26 12:55:00 +02:00
|
|
|
patch -p1 -i $SRC/coreutils-uname.patch
|
|
|
|
export FORCE_UNSAFE_CONFIGURE=1
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-assert \
|
|
|
|
--enable-no-install-program=uptime,kill,chcon,runcon,groups
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
install -d $PKG/bin
|
|
|
|
mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
|
|
|
|
mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
|
|
|
|
rm -r $PKG/usr/share/info
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|