1 # Description: A collection of core GNU utilities
2 # URL: http://www.gnu.org/software/coreutils/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: libgmp acl libcap
5
6 name=coreutils
7 version=9.0
8 release=1
9 source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz
10 coreutils-uname.patch
11 chmod.c.patch)
12
13 build() {
14 cd $name-$version
15
16 # https://bugs.gnu.org/50784
17 patch -p1 -i $SRC/chmod.c.patch
18
19 patch -p1 -i $SRC/coreutils-uname.patch
20 export FORCE_UNSAFE_CONFIGURE=1
21
22 ./configure \
23 --prefix=/usr \
24 --libexecdir=/usr/lib \
25 --disable-nls \
26 --disable-assert \
27 --enable-no-install-program=uptime,kill,chcon,runcon,groups
28 make
29 make DESTDIR=$PKG install
30
31 install -d $PKG/bin
32 mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
33 mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
34 rm -r $PKG/usr/share/info
35 }
|