CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Merged changes from noeabi (72cbd18e791bd2edff0e8d23873136187f0cd936)
[crossrootfs.git] / coreutils / Pkgfile
CommitLineData
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
83e7e2d0 4# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
6dca1d21
JB
5# Depends on: libgmp
6
7name=coreutils
39868db3 8version=8.4
8b3fc2ad 9release=2
6dca1d21
JB
10source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz
11 coreutils-uname.patch)
12
13build() {
14 cd $name-$version
15 patch -p1 -i $SRC/coreutils-uname.patch
8b3fc2ad
JB
16
17 for f in $(find man/ -type f -name '*.x' -exec basename {} .x \;); do
18 touch $f
19 done
6dca1d21
JB
20
21 cat > config.cache <<EOF
35de06c0 22ac_cv_search_clock_gettime=no
6dca1d21
JB
23fu_cv_sys_stat_statfs2_bsize=yes
24gl_cv_func_rename_trailing_slash_bug=no
25gl_cv_func_mbrtowc_incomplete_state=yes
26gl_cv_func_mbrtowc_null_retval=yes
27gl_cv_func_mbrtowc_null_arg=yes
28gl_cv_func_mbrtowc_retval=yes
29gl_cv_func_btowc_eof=yes
30gl_cv_func_wcrtomb_retval=yes
31gl_cv_func_wctob_works=yes
32EOF
33
34 DEFAULT_POSIX2_VERSION=199209 \
35de06c0 35 GPERF=false \
6dca1d21
JB
36 ./configure --build=$CHOST \
37 --host=$CTARGET \
38 --prefix=/usr \
39 --mandir=/usr/man \
40 --disable-nls \
41 --disable-assert \
42 --disable-libcap \
43 --disable-xattr \
44 --enable-no-install-program=uptime,kill,chcon,runcon,groups \
45 --cache-file=config.cache
46
47 make
48 make DESTDIR=$PKG install
49
50 install -d $PKG/bin
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
53 rm -r $PKG/usr/share
54}