CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Imported core-cross ports from 2.5
[crossrootfs.git] / coreutils / Pkgfile
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
4 # Arch Maintainer: CRUX ARM System Team
5 # Depends on: libgmp
6
7 name=coreutils
8 version=7.4
9 release=1
10 source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz
11 coreutils-uname.patch)
12
13 build() {
14 cd $name-$version
15 patch -p1 -i $SRC/coreutils-uname.patch
16 touch man/uname.1 man/hostname.1
17
18 cat > config.cache <<EOF
19 fu_cv_sys_stat_statfs2_bsize=yes
20 gl_cv_func_rename_trailing_slash_bug=no
21 gl_cv_func_mbrtowc_incomplete_state=yes
22 gl_cv_func_mbrtowc_null_retval=yes
23 gl_cv_func_mbrtowc_null_arg=yes
24 gl_cv_func_mbrtowc_retval=yes
25 gl_cv_func_btowc_eof=yes
26 gl_cv_func_wcrtomb_retval=yes
27 gl_cv_func_wctob_works=yes
28 EOF
29
30 DEFAULT_POSIX2_VERSION=199209 \
31 ./configure --build=$CHOST \
32 --host=$CTARGET \
33 --prefix=/usr \
34 --mandir=/usr/man \
35 --disable-nls \
36 --disable-assert \
37 --disable-libcap \
38 --disable-xattr \
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
48 rm -r $PKG/usr/share
49 }