### this file is sourced not run
PKGVER=3.1
PKGBUILD=1
PKGARCH=x86_64

TARBALL=grep-$PKGVER.tar.xz
MD5SUM=feca7b3e7c7f4aab2b42ecbfc513b070
BUNDLE=fatdog-base-8.2.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$BUNDLE

SLACKREQ=libpcre
SLACKDESC="grep-pcre: grep-pcre $PKGVER (search text in files)  
grep-pcre:  
grep-pcre: grep searches input files for lines containing a match to a given 
grep-pcre: pattern list. When it finds a match in a line, it copies the line to 
grep-pcre: standard output (by default), or produces whatever other sort of output 
grep-pcre: you have requested with options.  
grep-pcre: 
grep-pcre: This version of grep is compiled with support for PCRE regex.
grep-pcre: 
grep-pcre: 
grep-pcre:
"


### override download for LFS sources bundle
# $1-src-dir $2-tarball 
pkg_download() {
	echo downloading $BUNDLE for $TARBALL
	wget -P $1 $SRC_URL
	tar -xf $1/$BUNDLE --strip-components=1 -C $1 
	rm $1/$BUNDLE
}

### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --bindir=/bin --enable-perl-regexp"
	pkg_build_autoconf && pkg_build_slackdesc
}


