# Depends on: libgmp acl libcap
name=coreutils
-version=8.22
+version=8.29
release=1
-source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.xz \
+source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz
$name-uname.patch)
build() {
--host=$CTARGET \
--prefix=/usr \
--libexecdir=/usr/lib \
- --mandir=/usr/man \
--disable-nls \
--disable-assert \
--enable-no-install-program=uptime,kill,chcon,runcon,groups \
--cache-file=config.cache
- # fix to avoid crosscompile make-prime-list
- sed '/src_make_prime_list/d' -i Makefile
- depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`
- gcc -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src \
- -fdiagnostics-show-option -funit-at-a-time \
- -g -O2 -MT src/make-prime-list.o -MD -MP -MF $depbase.Tpo \
- -c -o src/make-prime-list.o src/make-prime-list.c
- mv -f $depbase.Tpo $depbase.Po
- gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time \
- -g -O2 -Wl,--as-needed -o src/make-prime-list src/make-prime-list.o
-
- # fix to avoid rebuild manpages
- sed 's|SUFFIXES: .1|SUFFIXES: |' -i Makefile
- sed 's|man1_MANS =.*|man1_MANS =|g' -i Makefile
-
make
make DESTDIR=$PKG install
install -d $PKG/bin
mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
- rm -r $PKG/usr/share
+ rm -r $PKG/usr/share/info
}