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

TARBALL=findutils-$PKGVER.tar.gz
MD5SUM=9936aa8009438ce185bea2694a997fc1
BUNDLE=fatdog-base-8.2.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$BUNDLE

SLACKREQ=
SLACKDESC="findutils: findutils $PKGVER (Utilies to find text in files)  
findutils:  
findutils: The Findutils package contains programs to find files. These 
findutils: programs are provided to recursively search through a directory 
findutils: tree and to create, maintain, and search a database (often faster 
findutils: than the recursive find, but unreliable if the database has not 
findutils: been recently updated).  
findutils: 
findutils: 
findutils: 
findutils:
"


### 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() {
	cd /tmp/findutils*
	CONFFLAGS="$CONFFLAGS --libexecdir=/usr/lib64/locate \
	    --localstatedir=/var/lib/locate"
	pkg_build_autoconf &&
	pkg_build_slackdesc
	
	# LFS bootscript
	#mv -v /usr/bin/find /bin
	#sed -i 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb
}


