CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
file: updated to 5.33-2
[crossrootfs.git] / file / Pkgfile
index 6237218a2d9b9928dffc499804302d18dfdb2fb9..4f1fb8ec8deb5fdf50997fa7ee205db1e766de5a 100644 (file)
@@ -1,22 +1,38 @@
 # Description: File type identification utility
 # URL: http://www.darwinsys.com/file/
 # Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on: zlib
 
 name=file
-version=5.04
-release=1
-source=(ftp://ftp.fu-berlin.de/unix/tools/file/$name-$version.tar.gz)
+version=5.33
+release=2
+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-fsect-man5 \
+              --enable-static \
+              --disable-libseccomp
+
   make
   make DESTDIR=$PKG install
-  rmdir $PKG/usr/man/man4
+  rmdir $PKG/usr/share/man/man4
 }