CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
dash: updated to 0.5.9.1
[crossrootfs.git] / coreutils / Pkgfile
index 39eb6f02abec140c4b88d3f0e00807cbf3f98f0e..48f583b0fe805e367297006d8be56240af9e2c8b 100644 (file)
@@ -5,15 +5,16 @@
 # Depends on: libgmp acl libcap
 
 name=coreutils
-version=8.22
+version=8.26
 release=1
 source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.xz \
-        $name-uname.patch)
+        $name-uname.patch $name-$version-Fix-cross.patch)
 
 build() {
   cd $name-$version
 
   patch -p1 -i $SRC/$name-uname.patch
+  patch -p1 -i $SRC/$name-$version-Fix-cross.patch
 
   cat > config.cache <<EOF
 ac_cv_search_clock_gettime=no
@@ -30,11 +31,14 @@ EOF
 
   export FORCE_UNSAFE_CONFIGURE=1
 
+  # fix to avoid build manpages
+  sed "s|UBDIRS = po . gnulib-tests|UBDIRS = . gnulib-tests|g" -i Makefile.am
+  sed 's|include $(top_srcdir)/man/local.mk||g' -i Makefile.am
+
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
               --libexecdir=/usr/lib \
-              --mandir=/usr/man \
               --disable-nls \
               --disable-assert \
               --enable-no-install-program=uptime,kill,chcon,runcon,groups \
@@ -61,5 +65,5 @@ EOF
   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
 }