CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
make: updated to 4.0
[crossrootfs.git] / diffutils / Pkgfile
index 89ccfc484fdde08c144a420e3af6dc586d84513b..4f5c46423ed07e17dfa2084f7543efa36811ad79 100644 (file)
@@ -5,18 +5,24 @@
 # Depends on:
 
 name=diffutils
-version=2.9
+version=3.3
 release=1
-source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
 
 build() {
   cd $name-$version
+
+  # fix for glibc 'gets' removal
+  sed -i -e '/gets is a/d' lib/stdio.in.h
+
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
               --mandir=$PKG/usr/man \
               --disable-nls
+
   make
   make prefix=$PKG/usr install
+
   rm -rf $PKG/usr/share
 }