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