X-Git-Url: http://gitweb/?a=blobdiff_plain;f=file%2FPkgfile;h=1dcb9e2aaa07d381ee6da90879a9305c76a60fec;hb=c4a1b4c6a3fdd0b4ee85a06c8a8ab51c65576497;hp=149866d698fe2d07728dd5177af6efa31e564127;hpb=f79e270b0a447bede2f73fe7677e842e50992cd8;p=crossrootfs.git diff --git a/file/Pkgfile b/file/Pkgfile index 149866d..1dcb9e2 100644 --- a/file/Pkgfile +++ b/file/Pkgfile @@ -1,23 +1,37 @@ # 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 +version=5.33 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 -# export CFLAGS="-O2 -msoft-float -pipe" + + 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 + make make DESTDIR=$PKG install - rmdir $PKG/usr/man/man4 + rmdir $PKG/usr/share/man/man4 }