description="A pattern scanning and processing language." packager="CRUX System Team " maintainer="Lukc " url="http://www.gnu.org/software/gawk/gawk.html" depends=() name=gawk version=3.1.8 release=1 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2) build () { cd $name-$version; ./configure \ ${CHOST:+--build=${CHOST}} \ ${CTARGET:+--host=${CTARGET}} \ --prefix=$prefix \ --libexecdir=$libdir \ --mandir=$mandir \ --enable-switch \ $(use_enable nls); make; make DESTDIR=$PKG install; #if ! use info; then # rm -r $PKG/usr/share/info; #fi rm $PKG$prefix/bin/gawk-$version $PKG$prefix/bin/pgawk-$version $PKG$prefix/bin/{p,i}gawk $PKG$mandir/man1/{p,i}gawk.1; ln -sf gawk.1.gz $PKG$mandir/man1/awk.1.gz }