summaryrefslogtreecommitdiffstats
path: root/file/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'file/Pkgfile')
-rw-r--r--file/Pkgfile23
1 files changed, 14 insertions, 9 deletions
diff --git a/file/Pkgfile b/file/Pkgfile
index 8d4dae9..5538242 100644
--- a/file/Pkgfile
+++ b/file/Pkgfile
@@ -1,18 +1,23 @@
-description="File type identification utility"
-packager=""
-maintainer="CRUX System Team, core-ports at crux dot nu"
+description="File type identification utility."
+packager="CRUX System Team <core-ports AT crux DOT nu>"
+maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.darwinsys.com/file/"
depends=(zlib)
name=file
version=5.04
release=1
-source=(ftp://ftp.fu-berlin.de/unix/tools/file/file-5.04.tar.gz)
+source=(ftp://ftp.fu-berlin.de/unix/tools/$name/$name-$version.tar.gz)
build ()
{
- cd $name-$version;
- ./configure --prefix=/usr --mandir=/usr/man --enable-fsect-man5;
- make;
- make DESTDIR=$PKG install;
- rmdir $PKG/usr/man/man4
+ cd $name-$version;
+ ./configure \
+ ${CHOST:+--build=${CHOST}} \
+ ${CTARGET:+--host=${CTARGET}} \
+ --prefix=$prefix \
+ --mandir=$mandir \
+ --enable-fsect-man5;
+ make;
+ make DESTDIR=$PKG install;
+ rmdir $PKG$mandir/man4
}