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

# CLFS 3.0.0
TARBALL=expect5.45.tar.gz
MD5SUM=44e1a4f4c877e9ddc5a542dfa7ecc92b
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/clfs-packages-3.0.0.tar
BUNDLE=clfs-packages-3.0.0.tar

SLACKREQ=
SLACKDESC="tools-expect: tools-expect $PKGVER (Build-system Expect)  
tools-expect:  
tools-expect: The Expect package contains a program for carrying out scripted 
tools-expect: dialogues with other interactive programs.  
tools-expect: 
tools-expect: This is the CLFS /tools package, part of the build system, 
tools-expect: and not for general use. 
tools-expect: 
tools-expect: DO NOT INSTALL THIS PACKAGE unless you know what you're doing.
tools-expect: 
tools-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() {
	cd /tmp/expect*
	
	CC="gcc ${BUILD64}" ./configure --prefix=/tools \
	   --with-tcl=/tools/lib64 --with-tclinclude=/tools/include  \
	   --libdir=/tools/lib64 &&
	make $MAKEFLAGS && make SCRIPTS="" install &&

	pkg_build_slackdesc
}


