X-Git-Url: http://gitweb/?a=blobdiff_plain;f=file%2FPkgfile;h=11dde42a37d131bb20fc0de438f539343432cf16;hb=f4dc7e96c1f746e85201a5bb9fc0c5cd01d0ed30;hp=7448c5f0d42ede81feb72f97c5a91fd2fc09c1de;hpb=a19adbada1372d8e01b6f5b9ea2baa061870ea8b;p=crossrootfs.git

diff --git a/file/Pkgfile b/file/Pkgfile
index 7448c5f..11dde42 100644
--- a/file/Pkgfile
+++ b/file/Pkgfile
@@ -5,21 +5,33 @@
 # Depends on: zlib
 
 name=file
-version=5.12
+version=5.18
 release=1
-source=(ftp://ftp.fu-berlin.de/unix/tools/file/$name-$version.tar.gz)
+source=(ftp://ftp.astron.com/pub/file/$name-$version.tar.gz)
 
 build() {
   cd $name-$version
 
+  OLD_PATH=$PATH
+  export PATH=/usr/bin:/bin
+
+  CC=gcc CXX=g++ \
+  CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \
+  LDFLAGS="" \
+  AR=ar LD=ld AS=as RANLIB=ranlib STRIP=strip \
+  ./configure --prefix=$SRC/host_file
+  make
+  make install
+
+  export PATH=$SRC/host_file/bin:$OLD_PATH
+
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
-              --mandir=/usr/man \
               --enable-fsect-man5 \
               --enable-static
 
   make
   make DESTDIR=$PKG install
-  rmdir $PKG/usr/man/man4
+  rmdir $PKG/usr/share/man/man4
 }