# Description: Programme pour rechercher à travers des fichiers.
# URL: http://www.gnu.org/software/grep/ 
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: pcre

name=grep
version=2.5.4
release=1
source=( http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz\
          http://www.linuxfromscratch.org/patches/lfs/development/grep-$version-debian_fixes-1.patch\
	 )

build() {
cd $name-$version
patch -Np1 -i ../$name-$version-debian_fixes-1.patch
./configure --prefix=/usr --mandir=/usr/share/man \
	--infodir=/usr/share/info --without-included-regex \
	--bindir=/bin
make
make DESTDIR=$PKG install
if [ -f $PKG/usr/share/info/dir ]; then
	rm $PKG/usr/share/info/dir
fi
}