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

TARBALL=grep-$PKGVER.tar.xz
MD5SUM=dc6e4d18d4659e6e7552fc4a183c8ac9
BUNDLE=fatdog-base-11.3.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$BUNDLE

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


### 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 --disable-perl-regexp"
	pkg_build_autoconf && pkg_build_slackdesc &&

	# remove obsolescent message
	sed -i -e '2,3d' /bin/egrep /bin/fgrep
}


