Commit | Line | Data |
---|---|---|
6dca1d21 JB |
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 | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
da33f4fc | 5 | # Depends on: libgmp acl libcap |
6dca1d21 JB |
6 | |
7 | name=coreutils | |
c791fd33 | 8 | version=8.29 |
58a12406 | 9 | release=1 |
c791fd33 VM |
10 | source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz |
11 | $name-uname.patch) | |
6dca1d21 JB |
12 | |
13 | build() { | |
14 | cd $name-$version | |
da33f4fc JB |
15 | |
16 | patch -p1 -i $SRC/$name-uname.patch | |
6dca1d21 JB |
17 | |
18 | cat > config.cache <<EOF | |
35de06c0 | 19 | ac_cv_search_clock_gettime=no |
6dca1d21 JB |
20 | fu_cv_sys_stat_statfs2_bsize=yes |
21 | gl_cv_func_rename_trailing_slash_bug=no | |
22 | gl_cv_func_mbrtowc_incomplete_state=yes | |
23 | gl_cv_func_mbrtowc_null_retval=yes | |
24 | gl_cv_func_mbrtowc_null_arg=yes | |
25 | gl_cv_func_mbrtowc_retval=yes | |
26 | gl_cv_func_btowc_eof=yes | |
27 | gl_cv_func_wcrtomb_retval=yes | |
28 | gl_cv_func_wctob_works=yes | |
29 | EOF | |
30 | ||
da33f4fc JB |
31 | export FORCE_UNSAFE_CONFIGURE=1 |
32 | ||
6dca1d21 JB |
33 | ./configure --build=$CHOST \ |
34 | --host=$CTARGET \ | |
35 | --prefix=/usr \ | |
7a413e44 | 36 | --libexecdir=/usr/lib \ |
6dca1d21 JB |
37 | --disable-nls \ |
38 | --disable-assert \ | |
6dca1d21 JB |
39 | --enable-no-install-program=uptime,kill,chcon,runcon,groups \ |
40 | --cache-file=config.cache | |
41 | ||
42 | make | |
43 | make DESTDIR=$PKG install | |
44 | ||
45 | install -d $PKG/bin | |
46 | mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin | |
47 | mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin | |
88b193c5 | 48 | rm -r $PKG/usr/share/info |
6dca1d21 | 49 | } |