CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
coreutils: updated to 8.26
[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, devel at crux-arm dot nu
5 # Depends on: libgmp acl libcap
6
7 name=coreutils
8 version=8.26
9 release=1
10 source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.xz \
11 $name-uname.patch $name-$version-Fix-cross.patch)
12
13 build() {
14 cd $name-$version
15
16 patch -p1 -i $SRC/$name-uname.patch
17 patch -p1 -i $SRC/$name-$version-Fix-cross.patch
18
19 cat > config.cache <<EOF
20 ac_cv_search_clock_gettime=no
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 export FORCE_UNSAFE_CONFIGURE=1
33
34 # fix to avoid build manpages
35 sed "s|UBDIRS = po . gnulib-tests|UBDIRS = . gnulib-tests|g" -i Makefile.am
36 sed 's|include $(top_srcdir)/man/local.mk||g' -i Makefile.am
37
38 ./configure --build=$CHOST \
39 --host=$CTARGET \
40 --prefix=/usr \
41 --libexecdir=/usr/lib \
42 --disable-nls \
43 --disable-assert \
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/info
54 }