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 |
6dca1d21 JB |
5 | # Depends on: libgmp |
6 | ||
7 | name=coreutils | |
ba454fcf | 8 | version=8.19 |
5469f2da | 9 | release=1 |
ba454fcf | 10 | source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.xz |
62c15fca | 11 | coreutils-uname.patch |
ba454fcf | 12 | http://crux-arm.nu/files/distfiles/coreutils-8.19_manpages.tar.xz) |
6dca1d21 JB |
13 | |
14 | build() { | |
15 | cd $name-$version | |
16 | patch -p1 -i $SRC/coreutils-uname.patch | |
a4906a9b | 17 | sed "s|SUBDIRS = lib src doc man po tests gnulib-tests|SUBDIRS = lib src tests gnulib-tests|g" -i Makefile.in |
6dca1d21 JB |
18 | |
19 | cat > config.cache <<EOF | |
35de06c0 | 20 | ac_cv_search_clock_gettime=no |
6dca1d21 JB |
21 | fu_cv_sys_stat_statfs2_bsize=yes |
22 | gl_cv_func_rename_trailing_slash_bug=no | |
23 | gl_cv_func_mbrtowc_incomplete_state=yes | |
24 | gl_cv_func_mbrtowc_null_retval=yes | |
25 | gl_cv_func_mbrtowc_null_arg=yes | |
26 | gl_cv_func_mbrtowc_retval=yes | |
27 | gl_cv_func_btowc_eof=yes | |
28 | gl_cv_func_wcrtomb_retval=yes | |
29 | gl_cv_func_wctob_works=yes | |
30 | EOF | |
31 | ||
32 | DEFAULT_POSIX2_VERSION=199209 \ | |
35de06c0 | 33 | GPERF=false \ |
6dca1d21 JB |
34 | ./configure --build=$CHOST \ |
35 | --host=$CTARGET \ | |
36 | --prefix=/usr \ | |
37 | --mandir=/usr/man \ | |
ba454fcf | 38 | --libexecdir=/usr/lib \ |
6dca1d21 JB |
39 | --disable-nls \ |
40 | --disable-assert \ | |
41 | --disable-libcap \ | |
42 | --disable-xattr \ | |
43 | --enable-no-install-program=uptime,kill,chcon,runcon,groups \ | |
44 | --cache-file=config.cache | |
45 | ||
46 | make | |
47 | make DESTDIR=$PKG install | |
48 | ||
49 | install -d $PKG/bin | |
50 | mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin | |
51 | mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin | |
a4906a9b | 52 | mv $SRC/usr/man $PKG/usr/ |
6dca1d21 | 53 | } |