CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
findutils: adapted to 64b
[crossrootfs.git] / file / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: File type identification utility
2# URL: http://www.darwinsys.com/file/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on: zlib
6
7name=file
aa257bd8 8version=5.18
b3f6a74e 9release=1
aa257bd8 10source=(ftp://ftp.astron.com/pub/file/$name-$version.tar.gz)
6dca1d21
JB
11
12build() {
13 cd $name-$version
f60269ec 14
4cb0bb39
VM
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
6dca1d21
JB
28 ./configure --build=$CHOST \
29 --host=$CTARGET \
30 --prefix=/usr \
a19adbad
VM
31 --enable-fsect-man5 \
32 --enable-static
f60269ec 33
6dca1d21
JB
34 make
35 make DESTDIR=$PKG install
c0365009 36 rmdir $PKG/usr/share/man/man4
6dca1d21 37}