56f549854d723d9dcebb77919019df55 coreutils-8.4.tar.gz
+75eb9d7f0c9f0e25bee29c77935146d2 coreutils-8.4_manpages.tar.bz2
e14ef9dd59a7e6c7f3ae706771964d75 coreutils-uname.patch
name=coreutils
version=8.4
-release=3
+release=4
source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz
- coreutils-uname.patch)
+ coreutils-uname.patch \
+ http://crux-arm.nu/files/distfiles/coreutils-8.4_manpages.tar.bz2)
build() {
cd $name-$version
patch -p1 -i $SRC/coreutils-uname.patch
-
- for f in $(find man/ -type f -name '*.x' -exec basename {} .x \;); do
- touch $f $f.1
- done
+ sed "s|SUBDIRS = lib src doc man po tests gnulib-tests|SUBDIRS = lib src tests gnulib-tests|g" -i Makefile.in
cat > config.cache <<EOF
ac_cv_search_clock_gettime=no
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
+ mv $SRC/usr/man $PKG/usr/
}