| 1 | # Description: File type identification utility |
| 2 | # URL: http://www.darwinsys.com/file/ |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: zlib |
| 6 | |
| 7 | name=file |
| 8 | version=5.32 |
| 9 | release=1 |
| 10 | source=(ftp://ftp.astron.com/pub/file/$name-$version.tar.gz) |
| 11 | |
| 12 | build() { |
| 13 | cd $name-$version |
| 14 | |
| 15 | OLD_PATH=$PATH |
| 16 | export PATH=/usr/bin:/bin |
| 17 | |
| 18 | CC=gcc CXX=g++ \ |
| 19 | CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \ |
| 20 | LDFLAGS="" \ |
| 21 | AR=ar LD=ld AS=as RANLIB=ranlib STRIP=strip \ |
| 22 | ./configure --prefix=$SRC/host_file |
| 23 | make |
| 24 | make install |
| 25 | |
| 26 | export PATH=$SRC/host_file/bin:$OLD_PATH |
| 27 | |
| 28 | ./configure --build=$CHOST \ |
| 29 | --host=$CTARGET \ |
| 30 | --prefix=/usr \ |
| 31 | --enable-fsect-man5 \ |
| 32 | --enable-static |
| 33 | |
| 34 | make |
| 35 | make DESTDIR=$PKG install |
| 36 | rmdir $PKG/usr/share/man/man4 |
| 37 | } |