CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
coreutils: fixed 'Arch Maintainer' line
[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
b2db72ea 4# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
6dca1d21
JB
5# Depends on: libgmp
6
7name=coreutils
35de06c0 8version=8.2
6dca1d21
JB
9release=1
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
35de06c0 16 touch man/uname.1 man/hostname.1 man/arch.1
6dca1d21
JB
17
18 cat > config.cache <<EOF
35de06c0 19ac_cv_search_clock_gettime=no
6dca1d21
JB
20fu_cv_sys_stat_statfs2_bsize=yes
21gl_cv_func_rename_trailing_slash_bug=no
22gl_cv_func_mbrtowc_incomplete_state=yes
23gl_cv_func_mbrtowc_null_retval=yes
24gl_cv_func_mbrtowc_null_arg=yes
25gl_cv_func_mbrtowc_retval=yes
26gl_cv_func_btowc_eof=yes
27gl_cv_func_wcrtomb_retval=yes
28gl_cv_func_wctob_works=yes
29EOF
30
31 DEFAULT_POSIX2_VERSION=199209 \
35de06c0 32 GPERF=false \
6dca1d21
JB
33 ./configure --build=$CHOST \
34 --host=$CTARGET \
35 --prefix=/usr \
36 --mandir=/usr/man \
37 --disable-nls \
38 --disable-assert \
39 --disable-libcap \
40 --disable-xattr \
41 --enable-no-install-program=uptime,kill,chcon,runcon,groups \
42 --cache-file=config.cache
43
44 make
45 make DESTDIR=$PKG install
46
47 install -d $PKG/bin
48 mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
49 mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
50 rm -r $PKG/usr/share
51}