CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
man-db: updated to 2.7.6
[crossrootfs.git] / file / Pkgfile
index cd502a5e1bc26aee4380be1087e0cc686a7d4288..ce9c22102d2bf0cc10a3fe2b3f6adab8e05c4055 100644 (file)
@@ -5,13 +5,26 @@
 # Depends on: zlib
 
 name=file
-version=5.18
+version=5.29
 release=1
 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 \