X-Git-Url: http://gitweb/?a=blobdiff_plain;f=cpio%2FPkgfile;h=bc3c492314105914dd188ddc274ab7bae4b217d2;hb=b4aac807c89c4c3f254c2320ab5a0e7a1fea2c44;hp=c4aa11001eb83ca58c55e054be3698579f3bbe23;hpb=7d238b281f28024e09c4bab69a1b81137b99c195;p=crossrootfs.git diff --git a/cpio/Pkgfile b/cpio/Pkgfile index c4aa110..bc3c492 100644 --- a/cpio/Pkgfile +++ b/cpio/Pkgfile @@ -5,20 +5,26 @@ name=cpio version=2.11 -release=1 +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 }