CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
6cfe82b908cf5a07d436ec91cf319049a04d4748
[crossrootfs.git] / file / Pkgfile
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.04
9 release=2
10 source=(ftp://ftp.fu-berlin.de/unix/tools/file/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
15 sed -i magic/Makefile.am magic/Makefile.in \
16 -e 's|-C -m magic|-C -m magic/magic|'
17
18 ./configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr \
21 --mandir=/usr/man \
22 --enable-fsect-man5
23
24 make
25 make DESTDIR=$PKG install
26 rmdir $PKG/usr/man/man4
27 }