CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
automake: updated to 1.15 and updated mandir
[crossrootfs.git] / cpio / Pkgfile
index b63369921b19c81f10d86e43176a95527b9bcf97..bc3c492314105914dd188ddc274ab7bae4b217d2 100644 (file)
@@ -4,19 +4,27 @@
 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 
 name=cpio
-version=2.10
-release=1
-source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
+version=2.11
+release=2
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 \
+        cpio-2.11-stat.patch)
 
 build() {
   cd $name-$version
+
+  patch -p1 -i $SRC/cpio-2.11-stat.patch
+  # fix for glibc 'gets' removal
+  sed -i -e '/gets is a/d' gnu/stdio.in.h
+
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
               --mandir=/usr/man \
               --disable-nls
+
   make
   make DESTDIR=$PKG install
+
   rm -r $PKG/usr/{share,libexec}
   rm $PKG/usr/man/man1/mt.1
 }