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 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz
11 coreutils-uname.patch)
15 patch -p1 -i $SRC/coreutils-uname.patch
17 for f in $(find man/ -type f -name '*.x' -exec basename {} .x \;); do
21 cat > config.cache <<EOF
22 ac_cv_search_clock_gettime=no
23 fu_cv_sys_stat_statfs2_bsize=yes
24 gl_cv_func_rename_trailing_slash_bug=no
25 gl_cv_func_mbrtowc_incomplete_state=yes
26 gl_cv_func_mbrtowc_null_retval=yes
27 gl_cv_func_mbrtowc_null_arg=yes
28 gl_cv_func_mbrtowc_retval=yes
29 gl_cv_func_btowc_eof=yes
30 gl_cv_func_wcrtomb_retval=yes
31 gl_cv_func_wctob_works=yes
34 DEFAULT_POSIX2_VERSION=199209 \
36 ./configure --build=$CHOST \
44 --enable-no-install-program=uptime,kill,chcon,runcon,groups \
45 --cache-file=config.cache
48 make DESTDIR=$PKG install
51 mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
52 mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin