### this file is sourced not run
PKGVER=5.45.4

# CLFS 3.0.0 updated to LFS 11.3
TARBALL=expect${PKGVER}.tar.gz
MD5SUM=00fce8de158422f5ccd2666512329bd2
BUNDLE=fatdog-base-11.3.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$BUNDLE

SLACKREQ='tcl'
SLACKDESC="expect: expect $PKGVER (Scripted dialog program)  
expect:  
expect: The Expect package contains a program for carrying out scripted 
expect: dialogues with other interactive programs.  
expect: 
expect: 
expect: 
expect: 
expect: 
expect: 
expect: 
"

### 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 \
		--with-tcl=/usr/$LIBDIR \
		--enable-shared         \
		--mandir=/usr/share/man \
		--with-tclinclude=/usr/include \
	" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


