CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
coreutils: Fixed manuals without building them, they are provided.
[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
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on: libgmp
6
7name=coreutils
39868db3 8version=8.4
a4906a9b 9release=4
6dca1d21 10source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz
a4906a9b
VM
11 coreutils-uname.patch \
12 http://crux-arm.nu/files/distfiles/coreutils-8.4_manpages.tar.bz2)
6dca1d21
JB
13
14build() {
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 20ac_cv_search_clock_gettime=no
6dca1d21
JB
21fu_cv_sys_stat_statfs2_bsize=yes
22gl_cv_func_rename_trailing_slash_bug=no
23gl_cv_func_mbrtowc_incomplete_state=yes
24gl_cv_func_mbrtowc_null_retval=yes
25gl_cv_func_mbrtowc_null_arg=yes
26gl_cv_func_mbrtowc_retval=yes
27gl_cv_func_btowc_eof=yes
28gl_cv_func_wcrtomb_retval=yes
29gl_cv_func_wctob_works=yes
30EOF
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 \
38 --disable-nls \
39 --disable-assert \
40 --disable-libcap \
41 --disable-xattr \
42 --enable-no-install-program=uptime,kill,chcon,runcon,groups \
43 --cache-file=config.cache
44
45 make
46 make DESTDIR=$PKG install
47
48 install -d $PKG/bin
49 mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
50 mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
a4906a9b 51 mv $SRC/usr/man $PKG/usr/
6dca1d21 52}